mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
fix: tunnel panic
This commit is contained in:
parent
f59d3e1c6d
commit
459166668c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user