tcp_transport.go
func (t *TCPStreamLayer) Addr() net.Addr {
	// Use an advertise addr if provided
	if t.advertise != nil {
		return t.advertise
	}
	return t.listener.Addr()
}
func (t *TCPStreamLayer) Addr() net.Addr {
	// Use an advertise addr if provided
	if t.advertise != nil {
		return t.advertise
	}
	return t.listener.Addr()
}
func ( t * TCPStreamLayer ) Addr ( ) net . Addr { // Use an advertise addr if provided if t . advertise != nil { return t . advertise } return t . listener . Addr ( ) }
// Addr implements the net.Listener interface.
Addr implements the net . Listener interface .