Skip to content

Commit

Permalink
v7.6.4
Browse files Browse the repository at this point in the history
Fix invalid device names breaking webui
  • Loading branch information
Adamm00 committed Dec 30, 2024
1 parent 30a64d4 commit 381d18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firewall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# #
# Router Firewall And Security Enhancements #
# By Adamm - https://github.com/Adamm00/IPSet_ASUS #
# 27/07/2024 - v7.6.3 #
# 30/12/2024 - v7.6.4 #
#############################################################################################################


Expand Down Expand Up @@ -1243,7 +1243,7 @@ Download_File() {
}

Get_LocalName() {
localname="$(nvram get custom_clientlist | grep -ioE "<.*>$macaddr" | awk -F ">" '{print $(NF-1)}' | tr -d '<')"
localname="$(nvram get custom_clientlist | grep -ioE "<.*>$macaddr" | sed -E 's/.*<([^>]+)>[^<]*$/\1/; s/[^a-zA-Z0-9.-]//g')"
if [ -z "$localname" ]; then localname="$(grep -F "$ipaddr " /var/lib/misc/dnsmasq.leases | awk '{print $4}')"; fi
if [ -z "$localname" ] || [ "$localname" = "*" ]; then
if [ -n "$macaddr" ]; then
Expand Down

0 comments on commit 381d18f

Please sign in to comment.