fix: tunnel panic
This commit is contained in:
parent
910e7fed97
commit
b5928c36a3
1 changed files with 7 additions and 1 deletions
|
@ -64,7 +64,13 @@ func (t *Tunnel) Close() error {
|
||||||
|
|
||||||
// Address implements constant.InboundListener
|
// Address implements constant.InboundListener
|
||||||
func (t *Tunnel) Address() string {
|
func (t *Tunnel) Address() string {
|
||||||
|
if t.ttl != nil {
|
||||||
return t.ttl.Address()
|
return t.ttl.Address()
|
||||||
|
}
|
||||||
|
if t.tul != nil {
|
||||||
|
return t.tul.Address()
|
||||||
|
}
|
||||||
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// Listen implements constant.InboundListener
|
// Listen implements constant.InboundListener
|
||||||
|
|
Loading…
Reference in a new issue