]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Verbose socat logs for debugging, Add '-4' to listen on Legacy IP (for sockwrap)
authorDimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Mon, 1 Apr 2024 13:58:56 +0000 (15:58 +0200)
committerDimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Thu, 4 Apr 2024 12:55:21 +0000 (14:55 +0200)
Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
tests/common.sh

index 822075060fbe411b665f6d5fa76a58fb8c4efca8..6f5fa165f277fe5644d87fc0ccea21ed1ced7461 100644 (file)
@@ -103,7 +103,7 @@ launch_simple_pppd() {
        #    the config packets exchanged, causing retries and leading to a longer negotiation period.
        #    [use `socat -x` for a hex log of I/O to/from the connected sockets]
 
-       LD_PRELOAD=libsocket_wrapper.so socat \
+       LD_PRELOAD=libsocket_wrapper.so socat -4 -d -d \
                 SYSTEM:"LD_PRELOAD= $SUDO $PPPD noauth local debug nodefaultroute logfile '$LOGFILE' $*",pty,raw,echo=0 \
                 OPENSSL-LISTEN:443,verify=0,cert="$CERT",key="$KEY" 2>&1 &
        PID=$!