Browse Source

Fix curl DNS fallback support check

master
Pekka Helenius 4 years ago
parent
commit
8317c9f57b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ssmtp_conf-sample/wanchecker.sh

+ 1
- 1
ssmtp_conf-sample/wanchecker.sh View File

@ -107,7 +107,7 @@ function curlFallBackDNS {
fallback_dns="" fallback_dns=""
preload_lib="" preload_lib=""
if [[ $(curl -V | sed -n '/AsynchDNS/p' | wc -l) -ne 0 ]] &&
if [[ $(curl -V | grep -c -oE '(c-ares|AsynchDNS)') -eq 2 ]] &&
[[ $ENABLE_FALLBACK_DNS == 1 ]]; then [[ $ENABLE_FALLBACK_DNS == 1 ]]; then
# Fallback DNS servers can be used # Fallback DNS servers can be used
fallback_dns=$(echo ${FALLBACK_DNS[*]} | sed 's/ /,/g') fallback_dns=$(echo ${FALLBACK_DNS[*]} | sed 's/ /,/g')


Loading…
Cancel
Save