소스 검색

listen on localhost only

Darien Raymond 7 년 전
부모
커밋
01c76d70da
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()