diff --git a/system-menu/login-to-wifi.sh b/system-menu/login-to-wifi.sh index a2143ba..d3ef34f 100755 --- a/system-menu/login-to-wifi.sh +++ b/system-menu/login-to-wifi.sh @@ -11,7 +11,7 @@ fi # Reverse lookup the default route (idk why, it works sometimes) login_addr="$(mullvad-exclude host "${default_route}" "${default_route}" | awk 'NR==6 { print $4 }')" -if (( ${?} != 0)); then +if [[ "${login_addr}" = 'found:' ]]; then login_addr="${default_route}" fi