mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-01 09:50:39 +01:00
Update server.go
This commit is contained in:
1 parent
f5871524be
commit
cf584a35ef
1 file changed
+3
-1
@@ -151,7 +151,9 @@ func (s *Server) Addr() string {
|
|||||||
if s.ln == nil {
|
if s.ln == nil {
|
||||||
return ""
|
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)
|
// GetHandler returns the protocol handler (for testing)
|
||||||
|
|||||||
Reference in new issue
Block a user