diff --git a/entrypoint.sh b/entrypoint.sh index 14e3715..458396a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -147,6 +147,7 @@ if [ ! -z "$SOURCE" ]; then for i in $(echo $SOURCE) ; do if [[ $i =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then SOURCE_IP=$i; + NO_TARGET_IP="true"; else name_resolver $i; debug "source ip is $APP_IP"; @@ -192,7 +193,9 @@ if [ ! -z "$TARGET" ]; then done else debug "TARGET is empty"; - exit; + if [ "$NO_TARGET_IP" != "true" ]; then + exit; + fi fi; # CHECKING WHETHER IS IT NEEDED TO USE PUBLIC PROXY SERVICE