mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-20 21:05:02 +03:00
8c8556ab32
* feat(frontend): multinode cloning initial implementation * fix(frontend): harden live node detection in multinode cloning Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * fix(frontend): add aria label to clone inbound modal * fix(frontend): shallow copy inbound settings during cloning * fix(frontend): avoid potential port conflict during testing * fix(frontend): selection buttons and websocket selection reset fix --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
17 lines
594 B
TypeScript
17 lines
594 B
TypeScript
import { Protocols } from '@/schemas/primitives';
|
|
|
|
/*
|
|
* Protocols whose inbounds can live on a sub-node (the "Deploy To" set).
|
|
* Everything else (http, mixed, tunnel, tun, mtproto) is panel-local only.
|
|
* Shared by the inbound form's Deploy To selector and the clone dialog's
|
|
* target picker so the two surfaces can never drift apart.
|
|
*/
|
|
export const NODE_ELIGIBLE_PROTOCOLS: Readonly<Record<string, true>> = {
|
|
[Protocols.VLESS]: true,
|
|
[Protocols.VMESS]: true,
|
|
[Protocols.TROJAN]: true,
|
|
[Protocols.SHADOWSOCKS]: true,
|
|
[Protocols.HYSTERIA]: true,
|
|
[Protocols.WIREGUARD]: true,
|
|
};
|