Browse Source

Don't use +noidnout if dig outputs a warning (fixes #688)

release2.46
Tim Kimber 4 years ago
parent
commit
369a50aa65
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      getssl

+ 4
- 2
getssl View File

@ -842,7 +842,7 @@ check_getssl_upgrade() { # check if a more recent release is available
# shellcheck disable=SC2086
status=$(curl ${_NOMETER:---silent} -w "%{http_code}" --user-agent "$CURL_USERAGENT" "$CODE_LOCATION" --output "$TEMP_UPGRADE_FILE")
errcode=$?
debug errcode=$errcode
debug curl errcode=$errcode
if [[ $errcode -eq 60 ]]; then
error_exit "curl needs updating, your version does not support SNI (multiple SSL domains on a single IP)"
@ -1295,7 +1295,9 @@ find_dns_utils() {
fi
if [[ -n "$HAS_DIG_OR_DRILL" ]]; then
if $HAS_DIG_OR_DRILL +noidnout >/dev/null 2>&1; then
dig_output=$($HAS_DIG_OR_DRILL +noidnout localhost 2>&1 >/dev/null)
# dig +noidnout on Ubuntu 18 succeeds, but outputs warning message to stderr - issue #688)
if [[ "$dig_output" != ";; IDN support not enabled" ]]; then
DIG_SUPPORTS_NOIDNOUT=true
fi


Loading…
Cancel
Save