From 7442f843d564345f9d3f4ecbeb51aa75c706c194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 16 Jul 2020 10:19:32 +0200 Subject: [PATCH] Fix added proxy command when IPv6 is used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For explicit proxy commands (included with `-p "$P_PXY ` in the test case), it's the test's writer responsibility to handle IPv6; only fix the proxy command when we're auto-adding it. Signed-off-by: Manuel Pégourié-Gonnard --- tests/ssl-opt.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 958c36891..f01511879 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -628,6 +628,10 @@ run_test() { # as it provides timing info that's useful to debug failures if [ -z "$PXY_CMD" ] && [ "$DTLS" -eq 1 ]; then PXY_CMD="$P_PXY" + case " $SRV_CMD " in + *' server_addr=::1 '*) + PXY_CMD="$PXY_CMD server_addr=::1 listen_addr=::1";; + esac fi # fix client port