参数错误导致服务器连接不上!
完整性要求
- [x] 我读完了 issue 模板中的所有注释,确保填写符合要求。
- [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [x] 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
- [x] 我搜索了 issues, 没有发现已提出的类似问题。
- [x] 问题在 Release 最新的版本上可以成功复现
描述
这个"interval": 30,应该是"interval": "30s",服务器才能认证成功
重现方式
"hysteriaSettings": {
"disablePathMTUDiscovery": false,
"version": 2,
"maxIdleTimeout": 30,
"udphop": {
"interval": 30,
"port": "60000-65530"
},
客户端配置
"hysteriaSettings": {
"disablePathMTUDiscovery": false,
"version": 2,
"maxIdleTimeout": 30,
"udphop": {
"interval": 30,
"port": "60000-65530"
},
服务端配置
"hysteriaSettings": {
"disablePathMTUDiscovery": false,
"version": 2,
"maxIdleTimeout": 30,
"udphop": {
"interval": 30,
"port": "60000-65530"
},
客户端日志
2026/01/18 18:33:05.514774 [Info] [764955701] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/hysteria: failed to find an available destination > transport/internet/hysteria: RoundTrip err > not supported
服务端日志
2026/01/18 18:33:05.514774 [Info] [764955701] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/hysteria: failed to find an available destination > transport/internet/hysteria: RoundTrip err > not supported
文档写错了 已经改了 写成30就行了 或者不填
文档写错了 已经改了 写成30就行了 或者不填
Xray 26.1.13 (Xray, Penetrates Everything.) OpenWrt (go1.25.5 linux/arm64) A unified platform for anti-censorship. 2026/01/18 17:13:53.373007 [Info] infra/conf/serial: Reading config: &{Name:/tmp/etc/passwall2/acl/default/global.json Format:json} Failed to start: main: failed to load config files: [/tmp/etc/passwall2/acl/default/global.json] > infra/conf/serial: failed to decode config: &{Name:/tmp/etc/passwall2/acl/default/global.json Format:json} > infra/conf/serial: failed to read config file at line 142 char 29 > json: cannot unmarshal string into Go struct field UdpHop.outbounds.streamSettings.hysteriaSettings.udphop.interval of type int64
原本这样是无法启动的,改成了30后可以启动程序但是无法连接上节点!节点日志显示报错 2026/01/18 18:33:05.514774 [Info] [764955701] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/hysteria: failed to find an available destination > transport/internet/hysteria: RoundTrip err > not supported
节点订阅存在这些参数应该是要带30s的,但是字符串会导致Xray无法正常启动,改成整数后可以启动但是无法连接上节点!节点是正常的换成sing-box是可以正常使用的!
应该是他们做面板的时候把我写的错的copy去了 至于改正后连不上首先你给的config就不完整 没法看
应该是他们做面板的时候把我写的错的copy去了 至于改正后连不上首先你给的config就不完整 没法看
Xray 26.1.13 (Xray, Penetrates Everything.) OpenWrt (go1.25.5 linux/arm64) A unified platform for anti-censorship. 2026/01/18 19:20:58.054927 [Info] infra/conf/serial: Reading config: &{Name:/tmp/etc/passwall2/acl/default/global.json Format:json} 2026/01/18 19:20:58.108573 [Debug] app/log: Logger started 2026/01/18 19:20:58.334148 [Info] app/dns: DNS: created DOH client for https://1.1.1.1/dns-query, with h2c false 2026/01/18 19:20:58.334310 [Info] app/dns: DNS: created UDP client initialized for 127.0.0.1:6053 2026/01/18 19:20:58.334723 [Info] app/dns: DNS: created UDP client initialized for 127.0.0.1:6053 2026/01/18 19:20:58.334812 [Info] app/dns: DNS: created DOH client for https://1.1.1.1/dns-query, with h2c false 2026/01/18 19:20:58.334836 [Info] app/dns: DNS: created UDP client initialized for 127.0.0.1:6053 2026/01/18 19:20:58.334856 [Info] app/dns: DNS: created DOH client for https://1.1.1.1/dns-query, with h2c false 2026/01/18 19:20:58.334871 [Info] app/dns: DNS: created DOH client for https://1.1.1.1/dns-query, with h2c false 2026/01/18 19:20:58.334885 [Info] app/dns: DNS: created DOH client for https://1.1.1.1/dns-query, with h2c false 2026/01/18 19:20:58.334899 [Info] app/dns: DNS: created DOH client for https://1.1.1.1/dns-query, with h2c false 2026/01/18 19:20:58.350838 [Info] app/dns: DNS: created UDP client initialized for 127.0.0.1:6053 2026/01/18 19:20:58.731852 [Debug] app/router: MphDomainMatcher is enabled for 64 domain rule(s) 2026/01/18 19:20:58.740533 [Debug] app/router: MphDomainMatcher is enabled for 987 domain rule(s) 2026/01/18 19:20:58.741612 [Debug] app/router: MphDomainMatcher is enabled for 14 domain rule(s) 2026/01/18 19:20:58.741686 [Debug] app/router: MphDomainMatcher is enabled for 3 domain rule(s) 2026/01/18 19:20:58.742515 [Debug] app/router: MphDomainMatcher is enabled for 28 domain rule(s) 2026/01/18 19:20:58.743261 [Debug] app/router: MphDomainMatcher is enabled for 18 domain rule(s) 2026/01/18 19:20:58.793216 [Debug] app/router: MphDomainMatcher is enabled for 5929 domain rule(s) 2026/01/18 19:20:59.868241 [Debug] app/router: MphDomainMatcher is enabled for 115182 domain rule(s) 2026/01/18 19:20:59.890744 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:1070 2026/01/18 19:20:59.890817 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:1041 2026/01/18 19:20:59.890835 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:15353 2026/01/18 19:20:59.892065 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1070 2026/01/18 19:20:59.892266 [Info] transport/internet/udp: listening UDP on 127.0.0.1:1070 2026/01/18 19:20:59.892437 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1041 2026/01/18 19:20:59.892625 [Info] transport/internet/udp: listening UDP on 0.0.0.0:1041 2026/01/18 19:20:59.892687 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:15353 2026/01/18 19:20:59.893426 [Info] transport/internet/udp: listening UDP on 127.0.0.1:15353 2026/01/18 19:20:59.893673 [Warning] core: Xray 26.1.13 started 2026/01/18 19:21:02.719663 [Debug] transport/internet/udp: UDP original destination: udp:185.125.190.57:123 2026/01/18 19:21:02.719973 [Debug] [2387126708] proxy/dokodemo: processing connection from: 192.168.7.100:64088 2026/01/18 19:21:02.720031 [Info] [2387126708] proxy/dokodemo: received request for 192.168.7.100:64088 2026/01/18 19:21:02.720934 [Info] [2387126708] app/dispatcher: Hit route rule: [default] so taking detour [default:🇭🇰香港专线02|BGP|流媒体] for [udp:185.125.190.57:123] 2026/01/18 19:21:02.721483 from 192.168.7.100:64088 accepted udp:185.125.190.57:123 [udp_redir -> default:🇭🇰香港专线02|BGP|流媒体] 2026/01/18 19:21:02.758249 [Debug] [2387126708] transport/internet: dialing to udp:aws-linkhy2.liangxin1.xyz:61097 2026/01/18 19:21:02.763412 [Info] [2387126708] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/hysteria: failed to find an available destination > transport/internet/hysteria: RoundTrip err > not supported 2026/01/18 19:21:03.373760 from 127.0.0.1:39734 accepted udp:0.0.0.0:15353 [dns-in -> dns-out] 2026/01/18 19:21:03.373892 from 127.0.0.1:59790 accepted udp:0.0.0.0:15353 [dns-in -> dns-out] 2026/01/18 19:21:03.373988 [Debug] [1076340648] proxy/dokodemo: processing connection from: 127.0.0.1:39734 2026/01/18 19:21:03.374038 [Info] [1076340648] proxy/dokodemo: received request for 127.0.0.1:39734 2026/01/18 19:21:03.374087 [Info] [1076340648] app/dispatcher: taking detour [dns-out] for [udp:0.0.0.0:15353] 2026/01/18 19:21:03.374130 [Info] [1076340648] proxy/dns: handling DNS traffic to udp:127.0.0.1:6053 2026/01/18 19:21:03.374174 [Debug] [115064809] proxy/dokodemo: processing connection from: 127.0.0.1:59790 2026/01/18 19:21:03.374216 [Info] [115064809] proxy/dokodemo: received request for 127.0.0.1:59790 2026/01/18 19:21:03.374258 [Info] [115064809] app/dispatcher: taking detour [dns-out] for [udp:0.0.0.0:15353] 2026/01/18 19:21:03.374300 [Info] [115064809] proxy/dns: handling DNS traffic to udp:127.0.0.1:6053 2026/01/18 19:21:03.374516 [Debug] app/dns: domain www.youtube.com matches following rules: [domain:youtube.com(DNS idx:8)] 2026/01/18 19:21:03.374578 [Debug] app/dns: domain www.youtube.com will use DNS in order: [DOH//1.1.1.1] 2026/01/18 19:21:03.374683 [Info] app/dns: failed to lookup ip for domain www.youtube.com at server DOH//1.1.1.1 in serial query mode > features/dns: empty response 2026/01/18 19:21:03.374739 [Debug] app/dns: domain www.youtube.com matches following rules: [domain:youtube.com(DNS idx:8)] 2026/01/18 19:21:03.374783 [Debug] app/dns: domain www.youtube.com will use DNS in order: [DOH//1.1.1.1] 2026/01/18 19:21:03.374816 [Info] app/dns: DOH//1.1.1.1 querying: www.youtube.com. 2026/01/18 19:21:03.376191 [Debug] [2707216449] proxy/dokodemo: processing connection from: 127.0.0.1:37072 2026/01/18 19:21:03.376286 [Info] [2707216449] proxy/dokodemo: received request for 127.0.0.1:37072 2026/01/18 19:21:03.376340 [Info] [2707216449] app/dispatcher: taking detour [dns-out] for [udp:0.0.0.0:15353] 2026/01/18 19:21:03.376412 [Info] [2707216449] proxy/dns: handling DNS traffic to udp:127.0.0.1:6053 2026/01/18 19:21:03.376473 from 127.0.0.1:37072 accepted udp:0.0.0.0:15353 [dns-in -> dns-out] 2026/01/18 19:21:03.376792 [Info] [2707216449] proxy/dns: blocked type TypeHTTPS query for domain www.youtube.com. 2026/01/18 19:21:03.377682 from DNS accepted https://1.1.1.1/dns-query [dns-in-GFW -> direct] 2026/01/18 19:21:03.377894 [Info] app/dispatcher: taking detour [direct] for [tcp:1.1.1.1:443] 2026/01/18 19:21:03.377990 [Info] transport/internet/tcp: dialing TCP to tcp:1.1.1.1:443 2026/01/18 19:21:03.378071 [Debug] transport/internet: dialing to tcp:1.1.1.1:443 2026/01/18 19:21:04.877975 [Debug] [1587645695] proxy/dokodemo: processing connection from: 127.0.0.1:42180 2026/01/18 19:21:04.878138 [Info] [1587645695] proxy/dokodemo: received request for 127.0.0.1:42180 2026/01/18 19:21:04.878229 from 127.0.0.1:42180 accepted udp:0.0.0.0:15353 [dns-in -> dns-out] 2026/01/18 19:21:04.878241 [Info] [1587645695] app/dispatcher: taking detour [dns-out] for [udp:0.0.0.0:15353] 2026/01/18 19:21:04.878400 [Info] [1587645695] proxy/dns: handling DNS traffic to udp:127.0.0.1:6053 2026/01/18 19:21:04.879515 [Debug] app/dns: domain www.youtube.com matches following rules: [domain:youtube.com(DNS idx:8)] 2026/01/18 19:21:04.879699 [Debug] app/dns: domain www.youtube.com will use DNS in order: [DOH//1.1.1.1] 2026/01/18 19:21:04.879792 [Info] app/dns: failed to lookup ip for domain www.youtube.com at server DOH//1.1.1.1 in serial query mode > features/dns: empty response
我说 config
我说 config
"outbounds": [ { "mux": { "enabled": false }, "protocol": "hysteria", "settings": { "port": 60000, "version": 2, "address": "" }, "streamSettings": { "network": "hysteria", "tlsSettings": { "allowInsecure": true, "serverName": "" }, "hysteriaSettings": { "disablePathMTUDiscovery": false, "version": 2, "maxIdleTimeout": 30, "udphop": { "interval": 30, "port": "60000-65530" }, "auth": "5fc853a8-f2fa-49c6-ba09-d8d12641743b" }, "sockopt": { "mark": 255 }, "security": "tls" }, "tag": "default:🇭🇰香港专线02|BGP|流媒体" },
我只删了服务器
我替换成我的服务器后没有任何问题 怀疑是你这个标了 OpenWrt 的改版替换了底层的dialer 给的conn没法syscall
你可以跑xray官端再随便接个socks5入站看能不能跑
你可以跑xray官端再随便接个socks5入站看能不能跑
"hysteriaSettings": { "disablePathMTUDiscovery": false, "version": 2, "maxIdleTimeout": 30, "udphop": { "interval": 30, "port": "60000-65530" },
是否需要订阅节点测试?其它不带"interval": 30,的节点都可以正常使用,唯独"interval": 30,这样的节点是无法连接上服务端,节点在其它Hysteria2可正常使用!
我说了 如果你听不懂的话 白话就是 可能是你这个改版核心不支持端口跳跃
问题不是应该在这个 Xray 26.1.13 (Xray, Penetrates Everything.) OpenWrt (go1.25.5 linux/arm64)
更新 1.18 就行了
问题在 Release 最新的版本上可以成功复现