Explorar el Código

listen on localhost only

Darien Raymond hace 7 años
padre
commit
01c76d70da
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()