mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-28 05:00:08 +00:00
cmd/tailscale/cli: fix the spelling of "routes" (#17039)
Updates #cleanup Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user