mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-13 16:16:06 +00:00
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:
@@ -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) ?? '';
|
||||
|
||||
Reference in New Issue
Block a user