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"
|
lockKey := key + "-lock"
|
||||||
wg, loaded := t.natTable.GetOrCreateLock(lockKey)
|
wg, loaded := t.natTable.GetOrCreateLock(lockKey)
|
||||||
|
|
||||||
isFakeIP := dns.DefaultResolver.IsFakeIP(metadata.DstIP)
|
isFakeIP := dns.DefaultResolver != nil && dns.DefaultResolver.IsFakeIP(metadata.DstIP)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
if !loaded {
|
if !loaded {
|
||||||
|
|
Loading…
Reference in a new issue