nusht
This commit is contained in:
parent
43c189b241
commit
806a78e8d3
1 changed files with 8 additions and 5 deletions
|
|
@ -15,14 +15,17 @@ def check-mullvad [] {
|
||||||
# switch to a specific exit node, or none
|
# switch to a specific exit node, or none
|
||||||
def tse [exit_node: string = ""] {
|
def tse [exit_node: string = ""] {
|
||||||
if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) {
|
if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) {
|
||||||
return "stop summoning first!"
|
print "stop summoning first!"
|
||||||
} else {
|
return false
|
||||||
tailscale set --exit-node $exit_node
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tailscale set --exit-node $exit_node
|
||||||
|
|
||||||
if ($exit_node | is-not-empty) {
|
if ($exit_node | is-not-empty) {
|
||||||
check-mullvad | return $in
|
return check-mullvad()
|
||||||
} else {
|
} else {
|
||||||
return "exit node set"
|
print "exit node set"
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue