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