.
This commit is contained in:
@@ -93,7 +93,7 @@ current=$(wget -U " $UA" \
|
||||
--save-cookies $COOKIEFILE \
|
||||
--keep-session-cookies \
|
||||
-qO- "https://www.united-domains.de/pfapi/dns/domain/$DOMAIN_ID/records")
|
||||
echo "CURRENT: $current"
|
||||
#echo "CURRENT: $current"
|
||||
|
||||
#record=$(echo $current |
|
||||
# jq -cM ".data.A | map(select(.id == $RECORD_ID)) | .[0]" | \
|
||||
@@ -142,9 +142,9 @@ OUT=$(wget -U " $UA" \
|
||||
--header="Http-X-Csrf-Token: $CSRFSCRIPT" \
|
||||
--body-data=$PAYLOAD \
|
||||
-O- "https://www.united-domains.de/pfapi/dns/domain/$DOMAIN_ID/records" 2>&1)
|
||||
echo "UD answered: $OUT"
|
||||
#echo "UD answered: $OUT"
|
||||
|
||||
echo $OUT | /bin/grep "$IPV4" >/dev/null 2>&1
|
||||
#echo $OUT | /bin/grep "$IPV4" >/dev/null 2>&1
|
||||
|
||||
SUCCESS=$?
|
||||
echo "Retval: $SUCCESS"
|
||||
|
||||
Reference in New Issue
Block a user