Skip to content

Commit ee6aee2

Browse files
authored
Change default listen host to 127.0.0.1 instead of localhost (#462)
1 parent bde94ec commit ee6aee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func NewServer(logger utils.ZapCompatibleLogger, opts ...ServerOption) (Server,
208208
grpcBindAddr := sOpts.bindAddress
209209
if grpcBindAddr == "" {
210210
if sOpts.tlsConfig == nil || sOpts.unauthenticated {
211-
grpcBindAddr = "localhost:0"
211+
grpcBindAddr = "127.0.0.1:0"
212212
} else {
213213
grpcBindAddr = ":0"
214214
}

0 commit comments

Comments
 (0)