Test: fix race issue (#598)

other "race" problems are only in the test, and so I deleted the detection
This commit is contained in:
Kslr
2021-01-11 20:50:58 +08:00
committed by GitHub
parent 9f8cb8bc8b
commit 795a3f632d
4 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -2,7 +2,6 @@ package udp
import (
"fmt"
"v2ray.com/core/common/net"
)
@@ -27,6 +26,7 @@ func (server *Server) Start() (net.Destination, error) {
server.conn = conn
go server.handleConnection(conn)
localAddr := conn.LocalAddr().(*net.UDPAddr)
return net.UDPDestination(net.IPAddress(localAddr.IP), net.Port(localAddr.Port)), nil
}