This commit is contained in:
Tao Tien 2026-04-30 15:15:20 -07:00
parent 58b1aa984f
commit 34130fbec5

View file

@ -13,7 +13,7 @@ export def check-mullvad [] {
} }
# switch to a specific exit node, or none # switch to a specific exit node, or none
export def te [exit_node: string = ""] { export def te [exit_node: string = "", -n] {
if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) { if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) {
print "stop summoning first!" print "stop summoning first!"
return false return false
@ -21,7 +21,7 @@ export def te [exit_node: string = ""] {
tailscale set --exit-node $exit_node tailscale set --exit-node $exit_node
if ($exit_node | is-not-empty) { if ($exit_node | is-not-empty) or not $n {
check-mullvad check-mullvad
} else { } else {
print "exit node set" print "exit node set"