mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
net.Listener converts 0.0.0.0 to :: which fails for hosts where IPv6 is disabled. This change uses the original listen address parameter instead of grpcl.Addr().String().
This commit is contained in:
parent
2440696961
commit
b3eccdd828
@ -413,7 +413,7 @@ func (h *Handler) Run(ctx context.Context) error {
|
||||
)
|
||||
av2.RegisterGRPC(grpcSrv)
|
||||
|
||||
hh, err := av2.HTTPHandler(grpcl.Addr().String())
|
||||
hh, err := av2.HTTPHandler(h.options.ListenAddress)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user