mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-19 16:50:56 +00:00
fix: tunnel panic
This commit is contained in:
parent
f59d3e1c6d
commit
459166668c
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue