fix(sockopt): rename interfaceName to interface so xray honors it

xray-core reads the bind-interface sockopt as json:"interface", but the schema and forms used interfaceName. Go's JSON unmarshal is case-insensitive, yet interfacename != interface, so the value never reached xray and interface binding silently did nothing. Rename the field across the schema, the inbound/outbound forms, and the golden fixture to match xray-core and the official docs.
This commit is contained in:
MHSanaei
2026-06-01 18:21:37 +02:00
parent d29a17d333
commit b6641439d4
5 changed files with 8 additions and 8 deletions
@@ -14,6 +14,6 @@
"tcpcongestion": "cubic",
"V6Only": false,
"tcpWindowClamp": 600,
"interfaceName": "eth0",
"interface": "eth0",
"trustedXForwardedFor": ["10.0.0.0/8", "192.168.0.0/16"]
}