mirror of
https://github.com/tailscale/tailscale.git
synced 2026-06-11 21:02:39 +08:00
cmd/netlogfmt: allow empty --resolve-addrs flag (#18103)
Updates tailscale/corp#33352 Signed-off-by: Joe Tsai <joetsai@digital-static.net>
This commit is contained in:
parent
bd5c50909f
commit
957a443b23
@ -77,6 +77,7 @@ func main() {
|
||||
*resolveAddrs = strings.ReplaceAll(*resolveAddrs, "-", "") // ignore dashes
|
||||
*resolveAddrs = strings.ReplaceAll(*resolveAddrs, "_", "") // ignore underscores
|
||||
switch *resolveAddrs {
|
||||
case "":
|
||||
case "id", "nodeid":
|
||||
*resolveAddrs = "nodeid"
|
||||
case "name", "hostname":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user