cmd/tailscale: fix inverted flag meanings.
The flags were --no-blah for a brief time, then we switched them to
blah=true/false with a default of true, but didn't fix the boolean
inversions in the code. So up was down, true was false, etc.
@@ -200,11 +200,11 @@ func runUp(ctx context.Context, args []string) error {
prefs.ControlURL = upArgs.server
prefs.WantRunning = true
prefs.RouteAll = upArgs.acceptRoutes
- prefs.AllowSingleHosts = !upArgs.singleRoutes
+ prefs.AllowSingleHosts = upArgs.singleRoutes
prefs.ShieldsUp = upArgs.shieldsUp
prefs.AdvertiseRoutes = routes
prefs.AdvertiseTags = tags
- prefs.NoSNAT = upArgs.snat
+ prefs.NoSNAT = !upArgs.snat
prefs.DisableDERP = !upArgs.enableDERP
if runtime.GOOS == "linux" {
switch upArgs.netfilterMode {
