1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-26 20:15:26 -05:00

remove port testing

This commit is contained in:
v2ray
2016-08-15 22:12:11 +02:00
parent 338dc1ebb6
commit a5a70afdb8
9 changed files with 17 additions and 42 deletions

View File

@@ -23,6 +23,7 @@ func (server *Server) Start() (v2net.Destination, error) {
if err != nil {
return nil, err
}
server.Port = v2net.Port(listener.Addr().(*net.TCPAddr).Port)
server.listener = listener
go server.acceptConnections(listener)
localAddr := listener.Addr().(*net.TCPAddr)