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

@ -194,7 +194,7 @@ func (s *server) createGauge(name string) *gauge {
}
func startServer(server *server, port int) {
lis, err := net.Listen("tcp", ":"+strconv.Itoa(port))
lis, err := net.Listen("tcp", "localhost:"+strconv.Itoa(port))
if err != nil {
grpclog.Fatalf("failed to listen: %v", err)
}