File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -21977,14 +21977,24 @@ check_proxy() {
2197721977 if [[ "$OSSL_NAME" =~ LibreSSL ]]; then
2197821978 PROXYIP="$PROXYNODE"
2197921979 else
21980- PROXYIP="[$PROXYNODE]"
21980+ # This was tested with vanilla OpenSSL versions
21981+ if [[ ${OSSL_VER_MAJOR$}${OSSL_VER_MINOR} -ge 11 ]]; then
21982+ PROXYIP="[$PROXYNODE]"
21983+ else
21984+ fatal_cmd_line "OpenSSL version >= 1.1.0 required for IPv6 proxy support" $ERR_OSSLBIN
21985+ fi
2198121986 fi
2198221987 else
2198321988 # We check now preferred whether there was an IPv4 proxy via DNS specified
2198421989 # If it fails it could be an IPv6 only proxy via DNS or we just can't reach the proxy
2198521990 PROXYIP="$(get_a_record "$PROXYNODE" 2>/dev/null | grep -v alias | sed 's/^.*address //')"
2198621991 if [[ -z "$PROXYIP" ]]; then
2198721992 PROXYIP="$(get_aaaa_record "$PROXYNODE" 2>/dev/null | grep -v alias | sed 's/^.*address //')"
21993+ if [[ -n "$PROXYIP" ]]; then
21994+ if [[ ${OSSL_VER_MAJOR$}${OSSL_VER_MINOR} -lt 11 ]]; then
21995+ fatal_cmd_line "OpenSSL version >= 1.1.0 required for IPv6 proxy support" $ERR_OSSLBIN
21996+ fi
21997+ fi
2198821998 fi
2198921999 [[ -z "$PROXYIP" ]] && fatal "Proxy IP cannot be determined from \"$PROXYNODE\"" $ERR_CMDLINE
2199022000 fi
You can’t perform that action at this time.
0 commit comments