From 191ec06b7c20adc2edc0a45ea8b113c43f677001 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Mon, 6 May 2024 17:31:23 -0700 Subject: [PATCH] randomize exit node --- users/tao/nushell/stuff.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index 2f5e79a..9a51bba 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -29,7 +29,7 @@ def tse [exit_node?] { } 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 }