Fix: udp crash
This commit is contained in:
parent
38458cc4d0
commit
50704eaeeb
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ func (t *Tunnel) handleUDPConn(packet *inbound.PacketAdapter) {
|
|||
lockKey := key + "-lock"
|
||||
wg, loaded := t.natTable.GetOrCreateLock(lockKey)
|
||||
|
||||
isFakeIP := dns.DefaultResolver.IsFakeIP(metadata.DstIP)
|
||||
isFakeIP := dns.DefaultResolver != nil && dns.DefaultResolver.IsFakeIP(metadata.DstIP)
|
||||
|
||||
go func() {
|
||||
if !loaded {
|
||||
|
|
Loading…
Reference in a new issue