Distunguish between LibreSSL and OpenSSL IPv6 proxy

Somehow the proxy now shows only IPv6 source addresses when specifying
--proxy=IPV6ADDRESS:PORT
This commit is contained in:
Dirk Wetter 2025-03-25 19:42:54 +01:00
parent 18da1b8df5
commit e81b09176d

View File

@ -21966,12 +21966,16 @@ check_proxy() {
PROXYNODE="${PROXY%:*}"
is_number "$PROXYPORT" || fatal "Proxy port cannot be determined from \"$PROXY\"" $ERR_CMDLINE
#FIXME: finish this with IPv6 proxy support, see #1105.
#FIXME: finish IPv6 proxy support, see #1105.
if is_ipv4addr "$PROXYNODE"; then
PROXYIP="$PROXYNODE"
elif is_ipv6addr "$PROXYNODE"; then
# Maybe an option like --proxy6 is better for purists
PROXYIP="[$PROXYNODE]"
if [[ "$OSSL_NAME" =~ LibreSSL ]]; then
PROXYIP="$PROXYNODE"
else
PROXYIP="[$PROXYNODE]"
fi
else
# We check now preferred whether there was an IPv4 proxy via DNS specified
# If it fails it could be an IPv6 only proxy via DNS or we just can't reach the proxy