From 51bebbabf639cc254c9fa375396266f703eb9094 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 11 Dec 2025 08:57:35 -0800 Subject: [PATCH] Update setup-qbittorent.zsh --- setup-qbittorent.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-qbittorent.zsh b/setup-qbittorent.zsh index 462adcc..aa7cb40 100755 --- a/setup-qbittorent.zsh +++ b/setup-qbittorent.zsh @@ -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>