Auto-update: Tue Aug 6 18:18:59 PDT 2024
This commit is contained in:
parent
ad2a10b1c7
commit
007dbf578e
1 changed files with 2 additions and 2 deletions
4
vitals
4
vitals
|
@ -45,8 +45,8 @@ if command -v tailscale &> /dev/null; then
|
||||||
# Parse exit node hostname
|
# Parse exit node hostname
|
||||||
if echo "$ts_exitnode_output" | grep -q 'selected'; then
|
if echo "$ts_exitnode_output" | grep -q 'selected'; then
|
||||||
mullvad_exitnode=true
|
mullvad_exitnode=true
|
||||||
# Extract the hostname of the selected exit node, remove any newline characters, and take only the first occurrence
|
# Extract the hostname of the selected exit node, taking only the part before any newline
|
||||||
mullvad_hostname=$(echo "$ts_exitnode_output" | grep 'selected' | awk '{print $2}' | tr -d '\n' | awk -F'.' '{print $1"."$2"."$3"."$4}')
|
mullvad_hostname=$(echo "$ts_exitnode_output" | grep 'selected' | awk '{print $2}' | awk -F'\n' '{print $1}')
|
||||||
else
|
else
|
||||||
mullvad_exitnode=false
|
mullvad_exitnode=false
|
||||||
mullvad_hostname=""
|
mullvad_hostname=""
|
||||||
|
|
Loading…
Reference in a new issue