mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-05 16:29:45 +01:00
Fix run_server_preference() with no default protocol
run_server_preference() calls "default_proto=$(get_protocol $TMPFILE)" even if all attempts to connect to the server failed. This will result in default_proto incorrectly being set to TLS 1.2. This commit fixes the issue by only calling get_protocol() if an attempt to connect to the server was successful.
This commit is contained in:
parent
0047e1f153
commit
93711f3d30
@ -6329,7 +6329,7 @@ run_server_preference() {
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
default_proto=$(get_protocol $TMPFILE)
|
||||
[[ $ret -eq 0 ]] && default_proto=$(get_protocol $TMPFILE)
|
||||
[[ "$default_proto" == TLSv1.0 ]] && default_proto="TLSv1"
|
||||
# debugme tm_out " --> $default_proto\n"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user