From 47d542d9b5106cb5ca113e17b5be45fe61b3b9a8 Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Thu, 26 Apr 2018 03:18:53 -0400 Subject: [PATCH] Update iptables.sh --- qbittorrent/iptables.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbittorrent/iptables.sh b/qbittorrent/iptables.sh index 52efe17..2a7ae34 100644 --- a/qbittorrent/iptables.sh +++ b/qbittorrent/iptables.sh @@ -46,7 +46,7 @@ for lan_network_item in "${lan_network_list[@]}"; do echo "$int_cidr detected on $interface interface" # get default gateway of interfaces as looping through them - DEFAULT_GATEWAY2=$(/sbin/ip route |grep '^default' | awk "/${$interface}/ {print $3}") + DEFAULT_GATEWAY2=$(/sbin/ip route |grep '^default' | awk "/${interface}/ {print $3}") # strip whitespace from start and end of lan_network_item lan_network_item=$(echo "${lan_network_item}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')