mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-24 18:21:00 +00:00
ipn: add AdvertisesExitNode and AdminPageURL accessors to PrefsView
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
6cc0036b40
commit
ae18cd02c1
@ -476,6 +476,9 @@ func (p *Prefs) ControlURLOrDefault() string {
|
|||||||
return DefaultControlURL
|
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.
|
// AdminPageURL returns the admin web site URL for the current ControlURL.
|
||||||
func (p *Prefs) AdminPageURL() string {
|
func (p *Prefs) AdminPageURL() string {
|
||||||
url := p.ControlURLOrDefault()
|
url := p.ControlURLOrDefault()
|
||||||
@ -486,6 +489,10 @@ func (p *Prefs) AdminPageURL() string {
|
|||||||
return url + "/admin/machines"
|
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
|
// AdvertisesExitNode reports whether p is advertising both the v4 and
|
||||||
// v6 /0 exit node routes.
|
// v6 /0 exit node routes.
|
||||||
func (p *Prefs) AdvertisesExitNode() bool {
|
func (p *Prefs) AdvertisesExitNode() bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user