we fix
This commit is contained in:
parent
3f453f633d
commit
07c2973f02
2 changed files with 8 additions and 6 deletions
|
|
@ -9,7 +9,7 @@ def check-mullvad [] {
|
||||||
$check = $j.mullvad_exit_ip
|
$check = $j.mullvad_exit_ip
|
||||||
}
|
}
|
||||||
print ""
|
print ""
|
||||||
print $"connected to ($j.city), ($j.country)"
|
return $"connected to ($j.city), ($j.country)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# switch to a specific exit node, or none
|
# switch to a specific exit node, or none
|
||||||
|
|
@ -20,10 +20,11 @@ def tse [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) {
|
||||||
check-mullvad
|
check-mullvad | return $in
|
||||||
}
|
} else {
|
||||||
return "exit node set"
|
return "exit node set"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# list all mullvad exit nodes
|
# list all mullvad exit nodes
|
||||||
def tsx [] {
|
def tsx [] {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ def check-mullvad [] {
|
||||||
$check = $j.mullvad_exit_ip
|
$check = $j.mullvad_exit_ip
|
||||||
}
|
}
|
||||||
print ""
|
print ""
|
||||||
print $"connected to ($j.city), ($j.country)"
|
return $"connected to ($j.city), ($j.country)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# switch to a specific exit node, or none
|
# switch to a specific exit node, or none
|
||||||
|
|
@ -20,10 +20,11 @@ def tse [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) {
|
||||||
check-mullvad
|
check-mullvad | return $in
|
||||||
}
|
} else {
|
||||||
return "exit node set"
|
return "exit node set"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# list all mullvad exit nodes
|
# list all mullvad exit nodes
|
||||||
def tsx [] {
|
def tsx [] {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue