ipn: add AdvertisesExitNode and AdminPageURL accessors to PrefsView

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/6285/head
Maisem Ali 2 years ago committed by Maisem Ali
parent 6cc0036b40
commit ae18cd02c1

@ -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 {

Loading…
Cancel
Save