diff --git a/ipn/prefs.go b/ipn/prefs.go index b40e24262..109c59bca 100644 --- a/ipn/prefs.go +++ b/ipn/prefs.go @@ -476,6 +476,9 @@ func (p *Prefs) ControlURLOrDefault() string { return DefaultControlURL } +// AdminPageURL returns the admin web site URL for the current ControlURL. +func (p PrefsView) AdminPageURL() string { return p.ж.AdminPageURL() } + // AdminPageURL returns the admin web site URL for the current ControlURL. func (p *Prefs) AdminPageURL() string { url := p.ControlURLOrDefault() @@ -486,6 +489,10 @@ func (p *Prefs) AdminPageURL() string { return url + "/admin/machines" } +// AdvertisesExitNode reports whether p is advertising both the v4 and +// v6 /0 exit node routes. +func (p PrefsView) AdvertisesExitNode() bool { return p.ж.AdvertisesExitNode() } + // AdvertisesExitNode reports whether p is advertising both the v4 and // v6 /0 exit node routes. func (p *Prefs) AdvertisesExitNode() bool {