ipn: add hostname to Prefs.Pretty output

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-04-12 10:45:33 -07:00
parent 4c3f7c06fc
commit a3113a793a
2 changed files with 10 additions and 0 deletions

View File

@@ -256,6 +256,9 @@ func (p *Prefs) pretty(goos string) string {
if p.ControlURL != "" && p.ControlURL != "https://login.tailscale.com" {
fmt.Fprintf(&sb, "url=%q ", p.ControlURL)
}
if p.Hostname != "" {
fmt.Fprintf(&sb, "host=%q ", p.Hostname)
}
if p.Persist != nil {
sb.WriteString(p.Persist.Pretty())
} else {