mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
listen on localhost only
This commit is contained in:
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
Block a user