mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 02:21:58 +00:00
net/portmapper: handle pcp ADDRESS_MISMATCH response
These show up a fair amount in our logs. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
committed by
Josh Bleecher Snyder
parent
bb91cfeae7
commit
999814e9e1
@@ -791,6 +791,10 @@ func (c *Client) Probe(ctx context.Context) (res ProbeResult, err error) {
|
||||
// provide port mapping services.
|
||||
res.PCP = false
|
||||
continue
|
||||
case pcpCodeAddressMismatch:
|
||||
// A PCP service is running, but it is behind a NAT, so it can't help us.
|
||||
res.PCP = false
|
||||
continue
|
||||
default:
|
||||
// Fall through to unexpected log line.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user