cmd/tailscale: warn if app-connector is enabled without ip forwarding

Fixes: ENG-2446
Signed-off-by: Tom DNetto <tom@tailscale.com>
This commit is contained in:
Tom DNetto 2023-11-13 12:31:39 -08:00 committed by Tom
parent 1825d2337b
commit 90a0aafdca

View File

@ -442,7 +442,7 @@ func runUp(ctx context.Context, cmd string, args []string, upArgs upArgsT) (retE
fatalf("%s", err)
}
if len(prefs.AdvertiseRoutes) > 0 {
if len(prefs.AdvertiseRoutes) > 0 || prefs.AppConnector.Advertise {
// TODO(jwhited): compress CheckIPForwarding and CheckUDPGROForwarding
// into a single HTTP req.
if err := localClient.CheckIPForwarding(ctx); err != nil {