mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-18 20:51:45 +00:00
ipn: print currently selected exit route in Prefs.String().
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
2404c0ffad
commit
abfd73f569
@ -168,6 +168,11 @@ func (p *Prefs) pretty(goos string) string {
|
|||||||
if p.ShieldsUp {
|
if p.ShieldsUp {
|
||||||
sb.WriteString("shields=true ")
|
sb.WriteString("shields=true ")
|
||||||
}
|
}
|
||||||
|
if !p.ExitNodeIP.IsZero() {
|
||||||
|
fmt.Fprintf(&sb, "exit=%v ", p.ExitNodeIP)
|
||||||
|
} else if !p.ExitNodeID.IsZero() {
|
||||||
|
fmt.Fprintf(&sb, "exit=%v ", p.ExitNodeID)
|
||||||
|
}
|
||||||
if len(p.AdvertiseRoutes) > 0 || goos == "linux" {
|
if len(p.AdvertiseRoutes) > 0 || goos == "linux" {
|
||||||
fmt.Fprintf(&sb, "routes=%v ", p.AdvertiseRoutes)
|
fmt.Fprintf(&sb, "routes=%v ", p.AdvertiseRoutes)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user