mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-04 15:03:41 +01:00
Add warning if target is not fqdn and SNI needs to be disabled
This commit is contained in:
parent
5284dda0fb
commit
3131abb333
@ -1534,8 +1534,12 @@ SCLIENTARGS="${PARAMS[*]}"
|
||||
# only append the SNI:
|
||||
# if the target is a hostname by validating the tld
|
||||
# if -servername was not supplied by the user
|
||||
if [[ $SNI == "True" && $sni_target =~ \.[a-z]{1,20}$ && ! $SCLIENTARGS =~ servername ]]; then
|
||||
SCLIENTARGS="$SCLIENTARGS -servername $sni_target"
|
||||
if [[ $SNI == "True" && ! $SCLIENTARGS =~ servername ]]; then
|
||||
if [[ $sni_target =~ \.[a-zA-Z]{1,20}$ ]]; then
|
||||
SCLIENTARGS="$SCLIENTARGS -servername $sni_target"
|
||||
else
|
||||
echo "Warning: target is not a FQDN. SNI was disabled. Use a FQDN or '-servername <fqdn>'" 1>&2
|
||||
fi
|
||||
fi
|
||||
debug "sclientargs: $SCLIENTARGS"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user