Detect IP on CNAME records
This commit is contained in:
parent
ccfe972441
commit
3a649887c5
|
@ -78,7 +78,7 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
#Simple DNS test
|
#Simple DNS test
|
||||||
if [ "$PUBLIC_IP" = "$(dig -4 +short $NC_DOMAIN)" ]; then
|
if [ "$PUBLIC_IP" = "$(dig -4 +short $NC_DOMAIN|awk -v RS='([0-9]+\\.){3}[0-9]+' 'RT{print RT}')" ]; then
|
||||||
echo "Server public IP & DNS record for $NC_DOMAIN seems to match, continuing...
|
echo "Server public IP & DNS record for $NC_DOMAIN seems to match, continuing...
|
||||||
"
|
"
|
||||||
else
|
else
|
||||||
|
|
|
@ -284,7 +284,7 @@ if [ "$LE_SSL" = "yes" ]; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
#Simple DNS test
|
#Simple DNS test
|
||||||
if [ "$PUBLIC_IP" = "$(dig -4 +short $JITSI_DOMAIN)" ]; then
|
if [ "$PUBLIC_IP" = "$(dig -4 +short $JITSI_DOMAIN||awk -v RS='([0-9]+\\.){3}[0-9]+' 'RT{print RT}')" ]; then
|
||||||
echo "Server public IP & DNS record for $JITSI_DOMAIN seems to match, continuing...
|
echo "Server public IP & DNS record for $JITSI_DOMAIN seems to match, continuing...
|
||||||
"
|
"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue