func (l *grpcListener) Addr() net.Addr {
	listenAddrs := l.host.Network().ListenAddresses()
	if len(listenAddrs) > 0 {
		for _, addr := range listenAddrs {
			if na, err := manet.ToNetAddr(addr); err == nil {
				return na
			}
		}
	}
	return fakeLocalAddr()
}
// Addr returns the listener's network address.
Addr returns the listener's network address.
// Addr returns the listener ' s network address .
func (l *grpcListener) Addr() net.Addr {
	listenAddrs := l.host.Network().ListenAddresses()
	if len(listenAddrs) > 0 {
		for _, addr := range listenAddrs {
			if na, err := manet.ToNetAddr(addr); err == nil {
				return na
			}
		}
	}
	return fakeLocalAddr()
}
func ( l * grpcListener ) Addr ( ) net . Addr { listenAddrs := l . host . Network ( ) . ListenAddresses ( ) if len ( listenAddrs ) > 0 { for _ , addr := range listenAddrs { if na , err := manet . ToNetAddr ( addr ) ; err == nil { return na } } } return fakeLocalAddr ( ) }
Addr returns the listener's network address.
Addr returns the listener ' s network address .