Merge pull request #3 from simondeziel/clean-temp

Cleanup old temp files when a connection failed
master
Julien Vehent 2014-01-07 19:04:43 -08:00
commit 26948cbccf
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ EOF
current_protocol=$(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}')
if [[ -z "$current_protocol" || "$current_cipher" == '(NONE)' ]]; then
# connection failed, try again with next TLS version
rm "$tmp"
continue
fi
# connection succeeded, add TLS version to positive results