diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2025-12-02 09:08:48 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-02 09:08:48 -0800 |
| commit | 957a443b23f6e328a4aa664b168152470eebbc19 (patch) | |
| tree | e9bd2c5eb6fb32455f4dc37242dfcc476a56a7a8 | |
| parent | bd5c50909f47380f61b90d0c6c5c7d61d1219271 (diff) | |
| download | tailscale-957a443b23f6e328a4aa664b168152470eebbc19.tar.xz tailscale-957a443b23f6e328a4aa664b168152470eebbc19.zip | |
cmd/netlogfmt: allow empty --resolve-addrs flag (#18103)
Updates tailscale/corp#33352
Signed-off-by: Joe Tsai <joetsai@digital-static.net>
| -rw-r--r-- | cmd/netlogfmt/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/netlogfmt/main.go b/cmd/netlogfmt/main.go index b8aba4aaa..0af52f862 100644 --- a/cmd/netlogfmt/main.go +++ b/cmd/netlogfmt/main.go @@ -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": |
