mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 05:31:18 +08:00
fix: tunnel panic
This commit is contained in:
parent
910e7fed97
commit
b5928c36a3
@ -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 New Issue
Block a user