Sfoglia il codice sorgente

listen on localhost only

Darien Raymond 7 anni fa
parent
commit
01c76d70da
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      testing/scenarios/common.go

+ 1 - 1
testing/scenarios/common.go

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