mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
ipn, etc: use controlplane.tailscale.com
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
82e15d3450
commit
d6f4b5f5cb
@ -28,7 +28,7 @@
|
|||||||
// DefaultControlURL returns the URL base of the control plane
|
// DefaultControlURL returns the URL base of the control plane
|
||||||
// ("coordination server") for use when no explicit one is configured.
|
// ("coordination server") for use when no explicit one is configured.
|
||||||
// The default control plane is the hosted version run by Tailscale.com.
|
// The default control plane is the hosted version run by Tailscale.com.
|
||||||
const DefaultControlURL = "https://login.tailscale.com"
|
const DefaultControlURL = "https://controlplane.tailscale.com"
|
||||||
|
|
||||||
// Prefs are the user modifiable settings of the Tailscale node agent.
|
// Prefs are the user modifiable settings of the Tailscale node agent.
|
||||||
type Prefs struct {
|
type Prefs struct {
|
||||||
|
@ -92,13 +92,13 @@ func TestPrefsEqual(t *testing.T) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
&Prefs{ControlURL: "https://login.tailscale.com"},
|
&Prefs{ControlURL: "https://controlplane.tailscale.com"},
|
||||||
&Prefs{ControlURL: "https://login.private.co"},
|
&Prefs{ControlURL: "https://login.private.co"},
|
||||||
false,
|
false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
&Prefs{ControlURL: "https://login.tailscale.com"},
|
&Prefs{ControlURL: "https://controlplane.tailscale.com"},
|
||||||
&Prefs{ControlURL: "https://login.tailscale.com"},
|
&Prefs{ControlURL: "https://controlplane.tailscale.com"},
|
||||||
true,
|
true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -324,7 +324,7 @@ func TestBasicPrefs(t *testing.T) {
|
|||||||
tstest.PanicOnLog()
|
tstest.PanicOnLog()
|
||||||
|
|
||||||
p := Prefs{
|
p := Prefs{
|
||||||
ControlURL: "https://login.tailscale.com",
|
ControlURL: "https://controlplane.tailscale.com",
|
||||||
}
|
}
|
||||||
checkPrefs(t, p)
|
checkPrefs(t, p)
|
||||||
}
|
}
|
||||||
@ -336,7 +336,7 @@ func TestPrefsPersist(t *testing.T) {
|
|||||||
LoginName: "test@example.com",
|
LoginName: "test@example.com",
|
||||||
}
|
}
|
||||||
p := Prefs{
|
p := Prefs{
|
||||||
ControlURL: "https://login.tailscale.com",
|
ControlURL: "https://controlplane.tailscale.com",
|
||||||
CorpDNS: true,
|
CorpDNS: true,
|
||||||
Persist: &c,
|
Persist: &c,
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ type nameIP struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// serverName and serverIP of are, say, "derpN.tailscale.com".
|
// serverName and serverIP of are, say, "derpN.tailscale.com".
|
||||||
// queryName is the name being sought (e.g. "login.tailscale.com"), passed as hint.
|
// queryName is the name being sought (e.g. "controlplane.tailscale.com"), passed as hint.
|
||||||
func bootstrapDNSMap(ctx context.Context, serverName string, serverIP netaddr.IP, queryName string) (dnsMap, error) {
|
func bootstrapDNSMap(ctx context.Context, serverName string, serverIP netaddr.IP, queryName string) (dnsMap, error) {
|
||||||
dialer := netns.NewDialer()
|
dialer := netns.NewDialer()
|
||||||
tr := http.DefaultTransport.(*http.Transport).Clone()
|
tr := http.DefaultTransport.(*http.Transport).Clone()
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
// LoginEndpointForProxyDetermination is the URL used for testing
|
// LoginEndpointForProxyDetermination is the URL used for testing
|
||||||
// which HTTP proxy the system should use.
|
// which HTTP proxy the system should use.
|
||||||
var LoginEndpointForProxyDetermination = "https://login.tailscale.com/"
|
var LoginEndpointForProxyDetermination = "https://controlplane.tailscale.com/"
|
||||||
|
|
||||||
// Tailscale returns the current machine's Tailscale interface, if any.
|
// Tailscale returns the current machine's Tailscale interface, if any.
|
||||||
// If none is found, all zero values are returned.
|
// If none is found, all zero values are returned.
|
||||||
|
Loading…
Reference in New Issue
Block a user