@ -191,7 +191,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
Hostname : "foo" ,
Hostname : "foo" ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AllowSingleHosts : true ,
} ,
} ,
want : accidentalUpPrefix + " --accept-dns --hostname=foo" ,
want : accidentalUpPrefix + " --accept-dns --hostname=foo" ,
} ,
} ,
@ -202,7 +201,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AllowSingleHosts : true ,
Hostname : "foo" ,
Hostname : "foo" ,
} ,
} ,
want : "" ,
want : "" ,
@ -214,7 +212,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AllowSingleHosts : true ,
Hostname : "foo" ,
Hostname : "foo" ,
} ,
} ,
want : "" ,
want : "" ,
@ -233,7 +230,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
OperatorUser : "alice" ,
OperatorUser : "alice" ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -245,7 +241,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--hostname=foo" } ,
flags : [ ] string { "--hostname=foo" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
OperatorUser : "alice" ,
OperatorUser : "alice" ,
@ -258,7 +253,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--advertise-routes=10.0.42.0/24" } ,
flags : [ ] string { "--advertise-routes=10.0.42.0/24" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AdvertiseRoutes : [ ] netip . Prefix {
AdvertiseRoutes : [ ] netip . Prefix {
@ -274,7 +268,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--advertise-routes=10.0.42.0/24" , "--advertise-exit-node=false" } ,
flags : [ ] string { "--advertise-routes=10.0.42.0/24" , "--advertise-exit-node=false" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AdvertiseRoutes : [ ] netip . Prefix {
AdvertiseRoutes : [ ] netip . Prefix {
@ -290,7 +283,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--advertise-routes=11.1.43.0/24,0.0.0.0/0,::/0" } ,
flags : [ ] string { "--advertise-routes=11.1.43.0/24,0.0.0.0/0,::/0" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AdvertiseRoutes : [ ] netip . Prefix {
AdvertiseRoutes : [ ] netip . Prefix {
@ -306,7 +298,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--advertise-exit-node" } ,
flags : [ ] string { "--advertise-exit-node" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -317,7 +308,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--advertise-exit-node" } ,
flags : [ ] string { "--advertise-exit-node" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
@ -332,7 +322,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--advertise-exit-node" } ,
flags : [ ] string { "--advertise-exit-node" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AdvertiseRoutes : [ ] netip . Prefix {
AdvertiseRoutes : [ ] netip . Prefix {
@ -348,7 +337,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--exit-node=" } ,
flags : [ ] string { "--exit-node=" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
@ -363,7 +351,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
WantRunning : true ,
WantRunning : true ,
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
RouteAll : true ,
RouteAll : true ,
AllowSingleHosts : false ,
ExitNodeIP : netip . MustParseAddr ( "100.64.5.6" ) ,
ExitNodeIP : netip . MustParseAddr ( "100.64.5.6" ) ,
CorpDNS : false ,
CorpDNS : false ,
ShieldsUp : true ,
ShieldsUp : true ,
@ -379,7 +366,7 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
OperatorUser : "alice" ,
OperatorUser : "alice" ,
} ,
} ,
curUser : "eve" ,
curUser : "eve" ,
want : accidentalUpPrefix + " --force-reauth --accept-dns=false --accept-routes --advertise-exit-node --advertise-routes=10.0.0.0/16 --advertise-tags=tag:foo,tag:bar --exit-node=100.64.5.6 --host -routes=false --host name=myhostname --netfilter-mode=nodivert --operator=alice --shields-up",
want : accidentalUpPrefix + " --force-reauth --accept-dns=false --accept-routes --advertise-exit-node --advertise-routes=10.0.0.0/16 --advertise-tags=tag:foo,tag:bar --exit-node=100.64.5.6 --host name=myhostname --netfilter-mode=nodivert --operator=alice --shields-up",
} ,
} ,
{
{
name : "remove_all_implicit_except_hostname" ,
name : "remove_all_implicit_except_hostname" ,
@ -388,7 +375,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
WantRunning : true ,
WantRunning : true ,
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
RouteAll : true ,
RouteAll : true ,
AllowSingleHosts : false ,
ExitNodeIP : netip . MustParseAddr ( "100.64.5.6" ) ,
ExitNodeIP : netip . MustParseAddr ( "100.64.5.6" ) ,
CorpDNS : false ,
CorpDNS : false ,
ShieldsUp : true ,
ShieldsUp : true ,
@ -402,7 +388,7 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
OperatorUser : "alice" ,
OperatorUser : "alice" ,
} ,
} ,
curUser : "eve" ,
curUser : "eve" ,
want : accidentalUpPrefix + " --hostname=newhostname --accept-dns=false --accept-routes --advertise-routes=10.0.0.0/16 --advertise-tags=tag:foo,tag:bar --exit-node=100.64.5.6 -- host-routes=false -- netfilter-mode=nodivert --operator=alice --shields-up",
want : accidentalUpPrefix + " --hostname=newhostname --accept-dns=false --accept-routes --advertise-routes=10.0.0.0/16 --advertise-tags=tag:foo,tag:bar --exit-node=100.64.5.6 -- netfilter-mode=nodivert --operator=alice --shields-up",
} ,
} ,
{
{
name : "loggedout_is_implicit" ,
name : "loggedout_is_implicit" ,
@ -410,7 +396,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
LoggedOut : true ,
LoggedOut : true ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -423,7 +408,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--advertise-exit-node" } ,
flags : [ ] string { "--advertise-exit-node" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
RouteAll : true ,
RouteAll : true ,
@ -438,7 +422,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--accept-dns" } ,
flags : [ ] string { "--accept-dns" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
NetfilterMode : preftype . NetfilterNoDivert , // we never had this bug, but pretend it got set non-zero on Windows somehow
NetfilterMode : preftype . NetfilterNoDivert , // we never had this bug, but pretend it got set non-zero on Windows somehow
} ,
} ,
@ -450,7 +433,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--operator=expbits" } ,
flags : [ ] string { "--operator=expbits" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AdvertiseRoutes : [ ] netip . Prefix {
AdvertiseRoutes : [ ] netip . Prefix {
@ -466,7 +448,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--operator=expbits" , "--advertise-routes=1.2.0.0/16" } ,
flags : [ ] string { "--operator=expbits" , "--advertise-routes=1.2.0.0/16" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AdvertiseRoutes : [ ] netip . Prefix {
AdvertiseRoutes : [ ] netip . Prefix {
@ -485,7 +466,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
WantRunning : false ,
WantRunning : false ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AllowSingleHosts : true ,
Hostname : "foo" ,
Hostname : "foo" ,
} ,
} ,
@ -496,7 +476,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--hostname=foo" } ,
flags : [ ] string { "--hostname=foo" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
@ -510,7 +489,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
curExitNodeIP : netip . MustParseAddr ( "100.64.5.7" ) ,
curExitNodeIP : netip . MustParseAddr ( "100.64.5.7" ) ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
@ -524,7 +502,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
curExitNodeIP : netip . MustParseAddr ( "100.2.3.4" ) ,
curExitNodeIP : netip . MustParseAddr ( "100.2.3.4" ) ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
@ -538,7 +515,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--login-server=https://controlplane.tailscale.com" } ,
flags : [ ] string { "--login-server=https://controlplane.tailscale.com" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -549,7 +525,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
flags : [ ] string { "--netfilter-mode=off" } ,
flags : [ ] string { "--netfilter-mode=off" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
AllowSingleHosts : true ,
CorpDNS : false ,
CorpDNS : false ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -563,7 +538,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
CorpDNS : true ,
CorpDNS : true ,
AllowSingleHosts : true ,
RouteAll : true ,
RouteAll : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -579,7 +553,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
CorpDNS : true ,
CorpDNS : true ,
AllowSingleHosts : true ,
RouteAll : true ,
RouteAll : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -593,7 +566,6 @@ func TestCheckForAccidentalSettingReverts(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
CorpDNS : true ,
CorpDNS : true ,
AllowSingleHosts : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
ProfileName : "foo" ,
ProfileName : "foo" ,
} ,
} ,
@ -661,7 +633,6 @@ func TestPrefsFromUpArgs(t *testing.T) {
NoStatefulFiltering : "false" ,
NoStatefulFiltering : "false" ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
CorpDNS : true ,
CorpDNS : true ,
AllowSingleHosts : true ,
AutoUpdate : ipn . AutoUpdatePrefs {
AutoUpdate : ipn . AutoUpdatePrefs {
Check : true ,
Check : true ,
} ,
} ,
@ -675,7 +646,6 @@ func TestPrefsFromUpArgs(t *testing.T) {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
WantRunning : true ,
WantRunning : true ,
CorpDNS : true ,
CorpDNS : true ,
AllowSingleHosts : true ,
RouteAll : true ,
RouteAll : true ,
NoSNAT : false ,
NoSNAT : false ,
NoStatefulFiltering : "false" ,
NoStatefulFiltering : "false" ,
@ -691,7 +661,6 @@ func TestPrefsFromUpArgs(t *testing.T) {
want : & ipn . Prefs {
want : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
WantRunning : true ,
WantRunning : true ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
AdvertiseRoutes : [ ] netip . Prefix {
AdvertiseRoutes : [ ] netip . Prefix {
netip . MustParsePrefix ( "0.0.0.0/0" ) ,
netip . MustParsePrefix ( "0.0.0.0/0" ) ,
@ -922,6 +891,9 @@ func TestPrefFlagMapping(t *testing.T) {
continue
continue
}
}
switch prefName {
switch prefName {
case "AllowSingleHosts" :
// Fake pref for downgrade compat. See #12058.
continue
case "WantRunning" , "Persist" , "LoggedOut" :
case "WantRunning" , "Persist" , "LoggedOut" :
// All explicitly handled (ignored) by checkForAccidentalSettingReverts.
// All explicitly handled (ignored) by checkForAccidentalSettingReverts.
continue
continue
@ -1029,7 +1001,6 @@ func TestUpdatePrefs(t *testing.T) {
wantJustEditMP : & ipn . MaskedPrefs {
wantJustEditMP : & ipn . MaskedPrefs {
AdvertiseRoutesSet : true ,
AdvertiseRoutesSet : true ,
AdvertiseTagsSet : true ,
AdvertiseTagsSet : true ,
AllowSingleHostsSet : true ,
AppConnectorSet : true ,
AppConnectorSet : true ,
ControlURLSet : true ,
ControlURLSet : true ,
CorpDNSSet : true ,
CorpDNSSet : true ,
@ -1064,7 +1035,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -1079,7 +1049,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -1092,7 +1061,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
CorpDNS : true ,
CorpDNS : true ,
AllowSingleHosts : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
OperatorUser : "somebody" ,
OperatorUser : "somebody" ,
} ,
} ,
@ -1113,7 +1081,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -1134,7 +1101,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
RunSSH : true ,
RunSSH : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
@ -1159,7 +1125,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
RunSSH : true ,
RunSSH : true ,
@ -1183,7 +1148,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -1206,7 +1170,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -1228,7 +1191,6 @@ func TestUpdatePrefs(t *testing.T) {
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
Persist : & persist . Persist { UserProfile : tailcfg . UserProfile { LoginName : "crawshaw.github" } } ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
RunSSH : true ,
RunSSH : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
@ -1250,7 +1212,6 @@ func TestUpdatePrefs(t *testing.T) {
sshOverTailscale : true ,
sshOverTailscale : true ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -1263,7 +1224,6 @@ func TestUpdatePrefs(t *testing.T) {
sshOverTailscale : true ,
sshOverTailscale : true ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : "https://login.tailscale.com" ,
ControlURL : "https://login.tailscale.com" ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -1275,7 +1235,6 @@ func TestUpdatePrefs(t *testing.T) {
flags : [ ] string { "--advertise-connector" } ,
flags : [ ] string { "--advertise-connector" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
} ,
} ,
@ -1295,7 +1254,6 @@ func TestUpdatePrefs(t *testing.T) {
flags : [ ] string { "--advertise-connector=false" } ,
flags : [ ] string { "--advertise-connector=false" } ,
curPrefs : & ipn . Prefs {
curPrefs : & ipn . Prefs {
ControlURL : ipn . DefaultControlURL ,
ControlURL : ipn . DefaultControlURL ,
AllowSingleHosts : true ,
CorpDNS : true ,
CorpDNS : true ,
NetfilterMode : preftype . NetfilterOn ,
NetfilterMode : preftype . NetfilterOn ,
AppConnector : ipn . AppConnectorPrefs {
AppConnector : ipn . AppConnectorPrefs {