1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-03 15:55:20 -05:00

add some logs

This commit is contained in:
Darien Raymond
2018-09-10 22:12:07 +02:00
parent 5d9dacc261
commit 156af4241d
2 changed files with 6 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ func (server *Server) Start() (net.Destination, error) {
return net.Destination{}, err
}
server.Port = net.Port(conn.LocalAddr().(*net.UDPAddr).Port)
fmt.Println("UDP server started on port ", server.Port)
server.conn = conn
go server.handleConnection(conn)
localAddr := conn.LocalAddr().(*net.UDPAddr)