client/tailscale,ipn/{ipnlocal,localapi}: check UDP GRO config (#10071)

Updates tailscale/corp#9990

Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
Jordan Whited
2023-11-09 11:34:41 -08:00
committed by GitHub
parent 1fc1077052
commit 12d5c99b04
10 changed files with 162 additions and 1 deletions
+8 -1
View File
@@ -443,9 +443,16 @@ func runUp(ctx context.Context, cmd string, args []string, upArgs upArgsT) (retE
}
if len(prefs.AdvertiseRoutes) > 0 {
if err := localClient.CheckIPForwarding(context.Background()); err != nil {
// TODO(jwhited): compress CheckIPForwarding and CheckUDPGROForwarding
// into a single HTTP req.
if err := localClient.CheckIPForwarding(ctx); err != nil {
warnf("%v", err)
}
if runtime.GOOS == "linux" {
if err := localClient.CheckUDPGROForwarding(ctx); err != nil {
warnf("%v", err)
}
}
}
curPrefs, err := localClient.GetPrefs(ctx)