mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
修复监听tcp后,未被添加到allServers列表的bug
该bug是 netLayer.ListenAndAccept 中 tcp监听部分忘给 返回值 listener 赋值导致的。
This commit is contained in:
@@ -92,6 +92,8 @@ func ListenAndAccept(network, addr string, sockopt *Sockopt, xver int, acceptFun
|
||||
|
||||
go loopAccept(tcplistener, xver, acceptFunc)
|
||||
|
||||
listener = tcplistener
|
||||
|
||||
case "udp", "udp4", "udp6":
|
||||
|
||||
//udp 的透明代理等设置sockopt的情况并不使用本函数监听, 而是使用 ListenUDP_withOpt.
|
||||
|
||||
Reference in New Issue
Block a user