Fix 'addrConn.resetTransport' error (#3004) (#3517)

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:
pasquier-s 2017-12-11 14:39:58 +01:00 committed by Julius Volz
parent 2440696961
commit b3eccdd828
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ func (h *Handler) Run(ctx context.Context) error {
) )
av2.RegisterGRPC(grpcSrv) av2.RegisterGRPC(grpcSrv)
hh, err := av2.HTTPHandler(grpcl.Addr().String()) hh, err := av2.HTTPHandler(h.options.ListenAddress)
if err != nil { if err != nil {
return err return err
} }