mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
Test: fix race issue (#598)
other "race" problems are only in the test, and so I deleted the detection
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user