Update setup-qbittorent.zsh
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user