mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 16:08:26 -05: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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user