Skip to content

Commit e81b091

Browse files
committed
Distunguish between LibreSSL and OpenSSL IPv6 proxy
Somehow the proxy now shows only IPv6 source addresses when specifying --proxy=IPV6ADDRESS:PORT
1 parent 18da1b8 commit e81b091

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testssl.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21966,12 +21966,16 @@ check_proxy() {
2196621966
PROXYNODE="${PROXY%:*}"
2196721967
is_number "$PROXYPORT" || fatal "Proxy port cannot be determined from \"$PROXY\"" $ERR_CMDLINE
2196821968

21969-
#FIXME: finish this with IPv6 proxy support, see #1105.
21969+
#FIXME: finish IPv6 proxy support, see #1105.
2197021970
if is_ipv4addr "$PROXYNODE"; then
2197121971
PROXYIP="$PROXYNODE"
2197221972
elif is_ipv6addr "$PROXYNODE"; then
2197321973
# Maybe an option like --proxy6 is better for purists
21974-
PROXYIP="[$PROXYNODE]"
21974+
if [[ "$OSSL_NAME" =~ LibreSSL ]]; then
21975+
PROXYIP="$PROXYNODE"
21976+
else
21977+
PROXYIP="[$PROXYNODE]"
21978+
fi
2197521979
else
2197621980
# We check now preferred whether there was an IPv4 proxy via DNS specified
2197721981
# If it fails it could be an IPv6 only proxy via DNS or we just can't reach the proxy

0 commit comments

Comments
 (0)