XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
25.82k stars 3.98k forks source link

1.6.5 版本 ss2022 common/net: invalid IP format: [] #1392

Closed guaguaya66 closed 7 months ago

guaguaya66 commented 1 year ago

版本: 1.6.5 协议: 2022-blake3-aes-128-gcm 服务端日志:

2022/11/30 15:17:09 [Debug] app/log: Logger started
2022/11/30 15:17:09 [Info] app/dns: DNS: created UDP client initialized for 1.1.1.1:53
2022/11/30 15:17:09 [Info] app/dns: DNS: created UDP client initialized for 8.8.8.8:53
2022/11/30 15:17:09 [Info] app/dns: DNS: created UDP client initialized for 1.1.1.1:53
2022/11/30 15:17:09 [Info] app/dns: DNS: created localhost client
2022/11/30 15:17:09 [Debug] app/router: MphDomainMatcher is enabled for 479 domain rule(s)
2022/11/30 15:17:09 [Debug] app/router: MphDomainMatcher is enabled for 16 domain rule(s)
2022/11/30 15:17:09 [Debug] app/router: MphDomainMatcher is enabled for 18 domain rule(s)
2022/11/30 15:17:09 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:4567
2022/11/30 15:17:09 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:4568
2022/11/30 15:17:09 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:4567
2022/11/30 15:17:09 [Info] transport/internet/udp: listening UDP on 0.0.0.0:4567
2022/11/30 15:17:09 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:4568
2022/11/30 15:17:09 [Info] transport/internet/udp: listening UDP on 0.0.0.0:4568
2022/11/30 15:17:09 [Warning] core: Xray 1.6.5 started
2022/11/30 15:17:10 [Info] [2895160629] proxy/shadowsocks_2022: tunnelling request to tcp:149.154.167.41:80
2022/11/30 15:17:10 [Info] [2895160629] app/dispatcher: sniffed domain: 149.154.167.41
2022/11/30 15:17:10 [Info] [2895160629] app/dispatcher: taking detour [direct] for [tcp:149.154.167.41:80]
2022/11/30 15:17:10 [Info] [2895160629] proxy/freedom: opening connection to tcp:149.154.167.41:80
2022/11/30 15:17:10 [Info] [2895160629] transport/internet/tcp: dialing TCP to tcp:149.154.167.41:80
2022/11/30 15:17:10 [Debug] transport/internet: dialing to tcp:149.154.167.41:80
2022/11/30 15:17:10 [Info] [325459468] proxy/shadowsocks_2022: tunnelling request to tcp:149.154.171.255:80
2022/11/30 15:17:10 [Info] [1753441902] proxy/shadowsocks_2022: tunnelling request to tcp:[2001:b28:f23f:f005:]:7
2022/11/30 15:17:10 [Error] common/net: invalid IP format: []

复现情况: 服务器只有IPv4的情况下, 在客户端尝试使用 IPv6 连接 TG客户端会出现该错误,在1.6.3版本上相同配置一切正常

guaguaya66 commented 1 year ago

尝试1.6.4版本也正常,已经尝试过其他的机器,仍有该错误 客户端是clash

服务端配置: ``` { "log": { "access": "/etc/xray/access.log", "error": "/etc/xray/error.log", "loglevel": "error", "dnsLog": false }, "inbounds": [ { "port": 4567, "protocol": "shadowsocks", "settings": { "method": "2022-blake3-aes-128-gcm", "password": "{{password}}", "network": "tcp,udp" }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls", "quic", "fakedns" ] } } ], "outbounds": [ { "tag": "direct", "protocol": "freedom", "settings": {} } ], "routing": { "rules": [ { "type": "field", "outboundTag": "direct", "network": "udp,tcp" } ] } } ```