mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
Fix change of warning logic (no protos offered)
After changing the logic from $PROTOS_OFFERED contaning each protocol detected to $PROTOS_OFFERED contaning each protocol + colon yes or no there wasn't a change for the sanity check that no protocols are offered. This fixes it.
This commit is contained in:
parent
e0a5050553
commit
778a7cc12d
@ -4595,7 +4595,7 @@ run_protocols() {
|
|||||||
;; # no local support
|
;; # no local support
|
||||||
esac
|
esac
|
||||||
debugme echo "PROTOS_OFFERED: $PROTOS_OFFERED"
|
debugme echo "PROTOS_OFFERED: $PROTOS_OFFERED"
|
||||||
if [[ -z "$PROTOS_OFFERED" ]]; then
|
if [[ ! "$PROTOS_OFFERED" =~ yes ]]; then
|
||||||
outln
|
outln
|
||||||
ignore_no_or_lame "You should not proceed as no protocol was detected. If you still really really want to, say \"YES\"" "YES"
|
ignore_no_or_lame "You should not proceed as no protocol was detected. If you still really really want to, say \"YES\"" "YES"
|
||||||
[[ $? -ne 0 ]] && exit -2
|
[[ $? -ne 0 ]] && exit -2
|
||||||
|
Loading…
Reference in New Issue
Block a user