cmd/natc: fix nil pointer
Fixes #13432 Signed-off-by: Fran Bull <fran@tailscale.com>
This commit is contained in:
@ -489,6 +489,9 @@ type perPeerState struct {
|
||||
func (ps *perPeerState) domainForIP(ip netip.Addr) (_ string, ok bool) {
|
||||
ps.mu.Lock()
|
||||
defer ps.mu.Unlock()
|
||||
if ps.addrToDomain == nil {
|
||||
return "", false
|
||||
}
|
||||
return ps.addrToDomain.Lookup(ip)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user