mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-26 03:26:26 -08:00
cmd/natc: fix nil pointer
Fixes #13432 Signed-off-by: Fran Bull <[email protected]>
This commit is contained in:
1 parent
436a0784a2
commit
7d16af8d95
1 file changed
+3
@@ -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