Update setup-qbittorent.zsh

This commit is contained in:
2025-12-11 08:57:35 -08:00
parent d0fd18d254
commit 51bebbabf6

View File

@ -17,7 +17,7 @@ if [[ "${1}" == '-D' || "${1}" == '-R' ]]; then
fi
op="-D"
fi
local iface="$(ip route | grep '^default' | grep -Po '(?<=dev )[^ ]+')"
local iface="$(nmcli d s | tail -n+2 | grep ' connected' | grep -E '(wifi)|(ethernet)' | cut -d" " -f1)"
printf 'Using interface: %s\n' "${iface}"
# <-A|-D> <ex_ip> <in_ip>