Healthcheck checks your IP is in the VPN configuration file

This commit is contained in:
Quentin McGaw
2018-11-14 16:25:23 +02:00
parent eb1dc371c5
commit 9c6afff973
3 changed files with 10 additions and 19 deletions

View File

@@ -119,14 +119,6 @@ echo "options ndots:0" >> /etc/resolv.conf
exitOnError $?
printf "DONE\n"
############################################
# ORIGINAL IP FOR HEALTHCHECK
############################################
printf "Getting non VPN public IP address..."
export INITIAL_IP=$(wget -qO- 'https://duckduckgo.com/?q=what+is+my+ip' | grep -o 'Your IP address is [0-9.]*[0-9]' | grep -o '[0-9][0-9.]*')
exitOnError $?
printf "$INITIAL_IP\n"
############################################
# FIREWALL
############################################