cmd/tailscale/cli: fix the spelling of "routes" (#17039)

Updates #cleanup

Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
Alex Chan
2025-09-08 15:25:50 +01:00
committed by GitHub
parent ed6aa50bd5
commit ff8900583c
2 changed files with 3 additions and 3 deletions

View File

@@ -185,7 +185,7 @@ func runSet(ctx context.Context, args []string) (retErr error) {
}
}
warnOnAdvertiseRouts(ctx, &maskedPrefs.Prefs)
warnOnAdvertiseRoutes(ctx, &maskedPrefs.Prefs)
if err := checkExitNodeRisk(ctx, &maskedPrefs.Prefs, setArgs.acceptedRisks); err != nil {
return err
}

View File

@@ -486,7 +486,7 @@ func runUp(ctx context.Context, cmd string, args []string, upArgs upArgsT) (retE
fatalf("%s", err)
}
warnOnAdvertiseRouts(ctx, prefs)
warnOnAdvertiseRoutes(ctx, prefs)
if err := checkExitNodeRisk(ctx, prefs, upArgs.acceptedRisks); err != nil {
return err
}
@@ -1184,7 +1184,7 @@ func resolveAuthKey(ctx context.Context, v, tags string) (string, error) {
return authkey, nil
}
func warnOnAdvertiseRouts(ctx context.Context, prefs *ipn.Prefs) {
func warnOnAdvertiseRoutes(ctx context.Context, prefs *ipn.Prefs) {
if len(prefs.AdvertiseRoutes) > 0 || prefs.AppConnector.Advertise {
// TODO(jwhited): compress CheckIPForwarding and CheckUDPGROForwarding
// into a single HTTP req.