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