Skip to content

Commit

Permalink
intra/udp: fix nil ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Nov 4, 2023
1 parent 207b8dd commit 53c54c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intra/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func (h *udpHandler) ReceiveTo(conn core.UDPConn, data []byte, addr *net.UDPAddr

if !ok1 { // if NAT conn doesn't exist then check if its a DNS request and handle it
if h.dnsOverride(conn, addr, data) {
log.D("udp: egress: dns-override for dstaddr(%v) <- src(l:%v r:%v) for uid %s", raddr, nsladdr, nsraddr, nat.uid)
log.D("udp: egress: dns-override for dstaddr(%v) <- src(l:%v r:%v)", raddr, nsladdr, nsraddr)
return nil
}
log.W("udp: egress: closed? no nat(%v -> %v [%v])", nsladdr, raddr, nsraddr)
Expand Down

0 comments on commit 53c54c4

Please sign in to comment.