feat(inbound): support abstract unix sockets (@ prefix) in Address field

Accept the @-prefixed abstract socket form (e.g. @xray/in.sock) for an
inbound listen address, not just path-based sockets. The form now allows
Port 0 for both, and the Address help text documents the @ form across
all locales. The backend already treated both prefixes as unix sockets.
@
This commit is contained in:
MHSanaei
2026-06-12 14:34:02 +02:00
parent 80e168787e
commit 7c698c4bcf
14 changed files with 14 additions and 14 deletions
@@ -205,7 +205,7 @@ export default function InboundFormModal({
const wPort = Form.useWatch('port', form);
const wListen = (Form.useWatch('listen', form) ?? '') as string;
const isUdsListen = wListen.startsWith('/');
const isUdsListen = wListen.startsWith('/') || wListen.startsWith('@');
const wNodeId = Form.useWatch('nodeId', form) ?? null;
const shareAddrStrategy = Form.useWatch('shareAddrStrategy', form) ?? 'node';
const wTag = Form.useWatch('tag', form) ?? '';