Cleanup old temp files when a connection failed
This commit is contained in:
parent
af7b4ce18c
commit
93ee5e3f33
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ EOF
|
||||||
current_protocol=$(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}')
|
current_protocol=$(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}')
|
||||||
if [[ -z "$current_protocol" || "$current_cipher" == '(NONE)' ]]; then
|
if [[ -z "$current_protocol" || "$current_cipher" == '(NONE)' ]]; then
|
||||||
# connection failed, try again with next TLS version
|
# connection failed, try again with next TLS version
|
||||||
|
rm "$tmp"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
# connection succeeded, add TLS version to positive results
|
# connection succeeded, add TLS version to positive results
|
||||||
|
|
Loading…
Add table
Reference in a new issue