Skip to content

Commit 5739c3a

Browse files
committed
fix: comment out disallow IPv4 logic in check_ip function
1 parent cc83af8 commit 5739c3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

application/qmodem/files/usr/share/qmodem/modem_dial.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ check_ip()
281281
ipv4=$(echo $ipaddr | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | grep -v "0\.0\.0\.0" | head -n 1)
282282
ipv6=$(echo $ipaddr | grep -oE "\b([0-9a-fA-F]{0,4}.){2,7}[0-9a-fA-F]{0,4}\b")
283283
fi
284-
disallow_ipv4="0.0.0.0"
285-
#remove the disallow ip
286-
if [[ "$ipv4" == *"$disallow_ipv4"* ]];then
287-
ipv4=""
288-
fi
284+
# disallow_ipv4="0.0.0.0"
285+
# #remove the disallow ip
286+
# if [[ "$ipv4" == *"$disallow_ipv4"* ]];then
287+
# ipv4=""
288+
# fi
289289
connection_status=0
290290
if [ -n "$ipv4" ];then
291291
connection_status=1

0 commit comments

Comments
 (0)