|
|
@@ -1302,6 +1302,7 @@ func (ms *mapSession) setControlKnobsFromNodeAttrs(selfNodeAttrs []string) {
|
|
|
disableUPnP bool
|
|
|
randomizeClientPort bool
|
|
|
oneCGNAT opt.Bool
|
|
|
+ forceBackgroundSTUN bool
|
|
|
)
|
|
|
for _, attr := range selfNodeAttrs {
|
|
|
switch attr {
|
|
|
@@ -1317,6 +1318,8 @@ func (ms *mapSession) setControlKnobsFromNodeAttrs(selfNodeAttrs []string) {
|
|
|
oneCGNAT.Set(true)
|
|
|
case tailcfg.NodeAttrOneCGNATDisable:
|
|
|
oneCGNAT.Set(false)
|
|
|
+ case tailcfg.NodeAttrDebugForceBackgroundSTUN:
|
|
|
+ forceBackgroundSTUN = true
|
|
|
}
|
|
|
}
|
|
|
k.KeepFullWGConfig.Store(keepFullWG)
|
|
|
@@ -1324,6 +1327,7 @@ func (ms *mapSession) setControlKnobsFromNodeAttrs(selfNodeAttrs []string) {
|
|
|
k.DisableUPnP.Store(disableUPnP)
|
|
|
k.RandomizeClientPort.Store(randomizeClientPort)
|
|
|
k.OneCGNAT.Store(oneCGNAT)
|
|
|
+ k.ForceBackgroundSTUN.Store(forceBackgroundSTUN)
|
|
|
}
|
|
|
|
|
|
// ipForwardingBroken reports whether the system's IP forwarding is disabled
|