IP check correction

This commit is contained in:
2023-10-16 02:35:06 +00:00
parent a2301e7172
commit 6570137e42

View File

@@ -162,7 +162,7 @@ if [[ -z "$SOURCE_IP" ]]; then
IDX=0
for i in $(echo $SOURCE) ; do
if [[ "$i" != *"."* ]]; then
if [[ "$i" != [0-9]*"."[0-9]*"."[0-9]*"."[0-9]* ]]; then
name_resolver $i;
debug "source ip is $APP_IP";
if [[ -z "$APP_IP" ]]; then
@@ -209,7 +209,7 @@ if [[ -z "$TARGET_IP" ]]; then
IDX=0
for i in $(echo $TARGET) ; do
if [[ "$i" != *"."* ]]; then
if [[ "$i" != [0-9]*"."[0-9]*"."[0-9]*"."[0-9]* ]]; then
name_resolver $i;
debug "target ip is $APP_IP";