Browse Source

Update server.go

pull/7231/head
chrislu 2 months ago
parent
commit
cf584a35ef
  1. 4
      weed/mq/kafka/gateway/server.go

4
weed/mq/kafka/gateway/server.go

@ -151,7 +151,9 @@ func (s *Server) Addr() string {
if s.ln == nil {
return ""
}
return s.ln.Addr().String()
// Normalize to an address reachable by clients
host, port := s.GetListenerAddr()
return net.JoinHostPort(host, strconv.Itoa(port))
}
// GetHandler returns the protocol handler (for testing)

Loading…
Cancel
Save