-
Notifications
You must be signed in to change notification settings - Fork 5k
v2ray 使用 dokodemo-door 协议且添加 network: tcp,udp 时监听 localhost 出现 panic #3597
Copy link
Copy link
Open
Description
你正在使用哪个版本的 V2Ray?
5.42.0
你的使用场景是什么?
尝试双栈透明代理的双栈 localhost 入站
你看到的异常现象是什么?
panic: Calling IP() on a DomainAddress.
下方的最简配置中如果去除 "network": "tcp,udp",那么它运行但只监听 localhost 解析出的 v4 地址
如果配置是通过 stdin 获取的,会看到 panic: runtime error: invalid memory address or nil pointer dereference
你期待看到的正常表现是怎样的?
监听本地 v4 和 v6
请附上你的配置
服务端配置:
n/a
客户端配置:
这是引发问题的最简配置
{ "inbounds": [{ "listen": "localhost", "port": 18878, "protocol": "dokodemo-door","settings": { "network": "tcp,udp" } } ] }
请附上出错时软件输出的错误日志
服务器端错误日志:
n/a
客户端错误日志:
panic: Calling IP() on a DomainAddress.
goroutine 1 [running]:
github.com/v2fly/v2ray-core/v5/common/net.domainAddress.IP(...)
github.com/v2fly/v2ray-core/v5/common/net/address.go:166
github.com/v2fly/v2ray-core/v5/transport/internet/udp.ListenUDP({0x55a5b41f4d18, 0xc000611530}, {0x55a5b41f49d0, 0xc0005f0d60}, 0x49be, 0xc0005f5540, {0xc0004dfb28, 0x1, 0x55a5b40e49be?})
github.com/v2fly/v2ray-core/v5/transport/internet/udp/hub.go:56 +0x17c
github.com/v2fly/v2ray-core/v5/app/proxyman/inbound.(*udpWorker).Start(0xc0005689c0)
github.com/v2fly/v2ray-core/v5/app/proxyman/inbound/worker.go:388 +0x175
github.com/v2fly/v2ray-core/v5/app/proxyman/inbound.(*AlwaysOnInboundHandler).Start(0xc0004dfc00?)
github.com/v2fly/v2ray-core/v5/app/proxyman/inbound/always.go:153 +0x45
github.com/v2fly/v2ray-core/v5/app/proxyman/inbound.(*Manager).Start(0xc0005f5400)
github.com/v2fly/v2ray-core/v5/app/proxyman/inbound/inbound.go:99 +0xeb
github.com/v2fly/v2ray-core/v5.(*Instance).Start(0x55a5b4db17b8?)
github.com/v2fly/v2ray-core/v5/v2ray.go:375 +0xb1
github.com/v2fly/v2ray-core/v5/main/commands.executeRun(0x55a5b4db1780, {0xc0000520e0, 0x2, 0x2})
github.com/v2fly/v2ray-core/v5/main/commands/run.go:101 +0x302
github.com/v2fly/v2ray-core/v5/main/commands/base.Execute()
github.com/v2fly/v2ray-core/v5/main/commands/base/execute.go:67 +0x5cb
main.main()
github.com/v2fly/v2ray-core/v5/main/main.go:16 +0x277
如果 V2Ray 无法启动,请附上 --test 命令的输出
Configuration OK.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels