1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 01:05:35 -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

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