randomize exit node

This commit is contained in:
Tao Tien 2024-05-06 17:31:23 -07:00
parent 18384ce42a
commit 191ec06b7c

View file

@ -29,7 +29,7 @@ def tse [exit_node?] {
} }
def tsr [] { def tsr [] {
tailscale status --json | from json | get Peer | transpose nodekey node | get node | filter {$in.Location?.Country == USA} | get TailscaleIPs | each {get 0} | select (random int 0..($in | length)) | tse $in.0; tailscale status --json | from json | get Peer | transpose nodekey node | get node | filter {$in.Location?.Country == USA} | get TailscaleIPs | each {get 0} | select (random int 0..($in | length)) | tse $in.0
tailscale status tailscale status
} }