Skip to content

Commit c9528b5

Browse files
committed
fix host
1 parent 72a369f commit c9528b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/start.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,11 @@ which accepts a path for the resulting pprof file.
250250
}
251251

252252
func parseGrpcAddress(address string) (string, error) {
253-
_, port, err := net.SplitHostPort(address)
253+
host, port, err := net.SplitHostPort(address)
254254
if err != nil {
255255
return "", errorsmod.Wrapf(err, "invalid grpc address %s", address)
256256
}
257-
return fmt.Sprintf("127.0.0.1:%s", port), nil
257+
return fmt.Sprintf("%s:%s", host, port), nil
258258
}
259259

260260
// startStandAlone starts an ABCI server in stand-alone mode.

0 commit comments

Comments
 (0)