Added localhost to net.Listen() calls to avoid macOS firewall dialog. (#1539)

This commit is contained in:
Hein Meling
2017-09-26 10:19:45 -07:00
committed by Menghan Li
parent d555c82380
commit c67cd636f9
8 changed files with 9 additions and 9 deletions

View File

@ -37,7 +37,7 @@ var (
func main() {
flag.Parse()
go func() {
lis, err := net.Listen("tcp", ":0")
lis, err := net.Listen("tcp", "localhost:0")
if err != nil {
grpclog.Fatalf("Failed to listen: %v", err)
}