diff --git a/listener/inbound/tunnel.go b/listener/inbound/tunnel.go index e3e16281..221f4cd6 100644 --- a/listener/inbound/tunnel.go +++ b/listener/inbound/tunnel.go @@ -64,7 +64,13 @@ func (t *Tunnel) Close() error { // Address implements constant.InboundListener func (t *Tunnel) Address() string { - return t.ttl.Address() + if t.ttl != nil { + return t.ttl.Address() + } + if t.tul != nil { + return t.tul.Address() + } + return "" } // Listen implements constant.InboundListener