mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 06:57:31 +00:00
cmd/tailscale/cli,ipn/ipnstate,wgengine/magicsock: label peer-relay (#16510)
Updates tailscale/corp#30033 Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
@@ -183,10 +183,12 @@ func runStatus(ctx context.Context, args []string) error {
|
||||
} else if ps.ExitNodeOption {
|
||||
f("offers exit node; ")
|
||||
}
|
||||
if relay != "" && ps.CurAddr == "" {
|
||||
if relay != "" && ps.CurAddr == "" && ps.PeerRelay == "" {
|
||||
f("relay %q", relay)
|
||||
} else if ps.CurAddr != "" {
|
||||
f("direct %s", ps.CurAddr)
|
||||
} else if ps.PeerRelay != "" {
|
||||
f("peer-relay %s", ps.PeerRelay)
|
||||
}
|
||||
if !ps.Online {
|
||||
f("; offline")
|
||||
|
Reference in New Issue
Block a user