func (s *Server) AdvertiseAddr() string {
	// se if we have explicit --advertise-ip option
	if s.getAdvertiseIP() == nil {
		return s.addr.Addr
	}
	_, port, _ := net.SplitHostPort(s.addr.Addr)
	return net.JoinHostPort(s.getAdvertiseIP().String(), port)
}
// AdvertiseAddr returns an address this server should be publicly accessible
// as, in "ip:host" form
AdvertiseAddr returns an address this server should be publicly accessible
as, in "ip:host" form
// AdvertiseAddr returns an address this server should be publicly accessible // as in " ip : host " form
func (s *Server) AdvertiseAddr() string {
	if s.getAdvertiseIP() == nil {
		return s.addr.Addr
	}
	_, port, _ := net.SplitHostPort(s.addr.Addr)
	return net.JoinHostPort(s.getAdvertiseIP().String(), port)
}
func ( s * Server ) AdvertiseAddr ( ) string { if s . getAdvertiseIP ( ) == nil { return s . addr . Addr } _ , port , _ := net . SplitHostPort ( s . addr . Addr ) return net . JoinHostPort ( s . getAdvertiseIP ( ) . String ( ) , port ) }
AdvertiseAddr returns an address this server should be publicly accessible
as, in "ip:host" form
AdvertiseAddr returns an address this server should be publicly accessible as in " ip : host " form
// se if we have explicit --advertise-ip option