IP check correction
This commit is contained in:
@@ -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";
|
||||
|
||||
|
Reference in New Issue
Block a user