mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-04 15:03:41 +01:00
Enable SNI by default only if target is a fqdn and -servername not supplied
This commit is contained in:
parent
72e2b4f6e9
commit
5284dda0fb
@ -1531,7 +1531,10 @@ if [[ $VERBOSE != 0 ]] ; then
|
||||
fi
|
||||
|
||||
SCLIENTARGS="${PARAMS[*]}"
|
||||
if [[ $SNI == "True" ]]; then
|
||||
# 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"
|
||||
fi
|
||||
debug "sclientargs: $SCLIENTARGS"
|
||||
|
Loading…
Reference in New Issue
Block a user