summaryrefslogtreecommitdiffhomepage
path: root/smallzstd
diff options
context:
space:
mode:
authorSimon Law <sfllaw@sfllaw.ca>2025-03-14 11:47:57 -0700
committerMario Minardi <mario@tailscale.com>2025-04-07 16:10:20 -0600
commitb13343e37e4e140d6144ac29b87654daeb509a54 (patch)
treeef856ca3b7c17eebb6bc0cda871d8c2e17b95a0a /smallzstd
parent0655dd7b3da74697e190d67e95c6dbef5ad01060 (diff)
downloadtailscale-mpminardi/temp.tar.xz
tailscale-mpminardi/temp.zip
cmd/tailscale: get command for printing settingsmpminardi/temp
For symmetry, `tailscale get` is the complement of `tailscale set`. For every `tailscale set --SETTING`, there is now a corresponding `tailscale get SETTING`. While users were able to use `tailscale debug --prefs | jq .SETTING` to extract their settings, this requires an external tool. To add insult to injury, the names of the settings don’t always match the keys in the JSON. For example, the `accept-dns` setting is called `.CorpDNS`. And `advertise-exit-node` is just user-hostile. This patch also contains tests that try to keep `getSettings` aligned with the `setFlagSet` and `upFlagSet` flags for the `set` and `up` commands, respectively. As a happy side-effect, this also checks that the default values of these flags are consistent with the actual default settings. Closes: #2130 Signed-off-by: Simon Law <sfllaw@sfllaw.ca>
Diffstat (limited to 'smallzstd')
0 files changed, 0 insertions, 0 deletions