Merge pull request #31 from TheNyneR/main

This commit is contained in:
Christian Busch 2021-12-12 07:47:22 +01:00 committed by GitHub
commit 3030c5375e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -44,6 +44,9 @@ LOG="$0.log"
# inspecting the target URL of the save button.
#INWX_DOMAIN_ID="123456789"
# Provide a command to get the Ip instead of using Curl
#IPCOMMAND=""
# Use IPv6 connection.
# deprecated option for backward compatibility, use TYPE instead
#IPV6="NO"

View File

@ -94,7 +94,11 @@ if ls $(dirname $0)/nsupdate.d/*.config &> /dev/null; then
fi
# WAN_IP=`curl -s -$CONNECTION_TYPE ${IP_CHECK_SITE}| grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'`
WAN_IP=$(curl -s -$CONNECTION_TYPE ${IP_CHECK_SITE})
if [[ -z ${IPCOMMAND} ]]; then
WAN_IP=$(curl -s -$CONNECTION_TYPE ${IP_CHECK_SITE})
else
WAN_IP=$($IPCOMMAND)
fi
# This is relevant for getting the specific domain record id.
API_XML_INFO="<?xml version=\"1.0\"?>