phirework
5c42990c2f
wgengine/magicsock: add client flag and envknob to disable heartbeat ( #5638 )
...
Baby steps towards turning off heartbeat pings entirely as per #540 .
This doesn't change any current magicsock functionality and requires additional
changes to send/disco paths before the flag can be turned on.
Updates #540
Change-Id: Idc9a72748e74145b068d67e6dd4a4ffe3932efd0
Signed-off-by: Jenny Zhang <jz@tailscale.com>
Signed-off-by: Jenny Zhang <jz@tailscale.com>
4 years ago
Brad Fitzpatrick
74674b110d
envknob: support changing envknobs post-init
...
Updates #5114
Change-Id: Ia423fc7486e1b3f3180a26308278be0086fae49b
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
4 years ago
Mihai Parparita
27a1ad6a70
wasm: exclude code that's not used on iOS for Wasm too
...
It has similar size constraints. Saves ~1.9MB from the Wasm build.
Updates #3157
Signed-off-by: Mihai Parparita <mihai@tailscale.com>
4 years ago
David Anderson
7a18fe3dca
wgengine/magicsock: make debugUseDerpRoute an opt.Bool.
...
Can still be constant, just needs the extra methods.
Fixes #3812
Signed-off-by: David Anderson <danderson@tailscale.com>
4 years ago
David Anderson
d00341360f
wgengine/magicsock: remove unused debug knob.
...
Signed-off-by: David Anderson <danderson@tailscale.com>
5 years ago
Brad Fitzpatrick
39610aeb09
wgengine/magicsock: move debug knobs to their own file, compile out on iOS
...
No need for these knobs on iOS where you can set the environment
variables anyway.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
5 years ago