Skip to content

Commit 274a9ca

Browse files
authored
Merge pull request #2853 from testssl/quic_httpfix
only exec QUIC when SERVICE= HTTP
2 parents e62949d + 7a6c652 commit 274a9ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

testssl.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,6 +2228,12 @@ check_revocation_ocsp() {
22282228
fi
22292229
}
22302230

2231+
# waits maxsleep seconds (arg2) until process with arg1 (pid) will be killed
2232+
#
2233+
# return values
2234+
# 0: process terminated before be killed
2235+
# 3: was killed
2236+
#
22312237
wait_kill(){
22322238
local pid=$1 # pid we wait for or kill
22332239
local maxsleep=$2 # how long we wait before killing
@@ -6215,6 +6221,7 @@ sub_quic() {
62156221
local jsonID="QUIC"
62166222

62176223
[[ $DEBUG -ne 0 ]] && sclient_errfile=/dev/null
6224+
[[ "$SERVICE" != HTTP ]] && return 0
62186225

62196226
pr_bold " QUIC ";
62206227

0 commit comments

Comments
 (0)