1
0
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:
Darien Raymond 2018-02-06 12:22:46 +01:00
parent ede2c39967
commit 01c76d70da
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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()