aboutsummaryrefslogtreecommitdiff
path: root/scripts/nukestickercache.sh
blob: afe1be082b871e3ba706c8e608772f2c830c69be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

XEDNS=$(tailscale status --json | jq '.Peer | to_entries[] | .value.HostName | select(. | test("^xedn-[a-z]{3}$"))' -c -r | sort)
IFS=$'\n'

jo -a $*

for xedn in ${XEDNS}; do
    curl "http://${xedn}/xedn/purge" --data-binary "$(jo -a $*)" &
done

wait