mirror of https://github.com/v2ray/v2ray-core
listen on localhost only
parent
ede2c39967
commit
01c76d70da
|
@ -23,7 +23,7 @@ import (
|
|||
)
|
||||
|
||||
func pickPort() net.Port {
|
||||
listener, err := net.Listen("tcp4", ":0")
|
||||
listener, err := net.Listen("tcp4", "127.0.0.1:0")
|
||||
common.Must(err)
|
||||
defer listener.Close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue