wgengine/magicsock: don't peer relay if NodeAttrOnlyTCP443 is set (#16517)

Updates tailscale/corp#30138

Signed-off-by: Jordan Whited <jordan@tailscale.com>
main
Jordan Whited 9 months ago committed by GitHub
parent ae8641735d
commit 6a0fad1e10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      wgengine/magicsock/magicsock.go

@ -2704,6 +2704,7 @@ func (c *Conn) onNodeViewsUpdate(update NodeViewsUpdate) {
relayClientEnabled := update.SelfNode.Valid() &&
!update.SelfNode.HasCap(tailcfg.NodeAttrDisableRelayClient) &&
!update.SelfNode.HasCap(tailcfg.NodeAttrOnlyTCP443) &&
envknob.UseWIPCode()
c.mu.Lock()

Loading…
Cancel
Save