Merge pull request #233 from Mattraks/dev/ifname

6. Fix getting lan name error Fixes
This commit is contained in:
coolsnowwolf authored and GitHub committed 2020-11-28 00:26:41 +08:00
commit decb60d9d4
1 file changed
+1 -1
+1 -1
View File
@@ -183,7 +183,7 @@ ac_rule() {
;;
esac
fi
IFNAME=$(uci get -P/var/state network.lan.ifname 2>/dev/null)
IFNAME=$(uci -P /var/state get network.lan.ifname 2>/dev/null)
ipset -! -R <<-EOF || return 1
create ss_spec_lan_ac hash:net
$(for ip in ${LAN_AC_IP:1}; do echo "add ss_spec_lan_ac $ip"; done)