If no target ip added check proxy variable is valid IP address or not
This commit is contained in:
@@ -147,6 +147,7 @@ if [ ! -z "$SOURCE" ]; then
|
|||||||
for i in $(echo $SOURCE) ; do
|
for i in $(echo $SOURCE) ; do
|
||||||
if [[ $i =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
if [[ $i =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
SOURCE_IP=$i;
|
SOURCE_IP=$i;
|
||||||
|
NO_TARGET_IP="true";
|
||||||
else
|
else
|
||||||
name_resolver $i;
|
name_resolver $i;
|
||||||
debug "source ip is $APP_IP";
|
debug "source ip is $APP_IP";
|
||||||
@@ -192,7 +193,9 @@ if [ ! -z "$TARGET" ]; then
|
|||||||
done
|
done
|
||||||
else
|
else
|
||||||
debug "TARGET is empty";
|
debug "TARGET is empty";
|
||||||
exit;
|
if [ "$NO_TARGET_IP" != "true" ]; then
|
||||||
|
exit;
|
||||||
|
fi
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# CHECKING WHETHER IS IT NEEDED TO USE PUBLIC PROXY SERVICE
|
# CHECKING WHETHER IS IT NEEDED TO USE PUBLIC PROXY SERVICE
|
||||||
|
Reference in New Issue
Block a user