fix for TLS selection

Armin Felder requested to merge fixTLS into master

Merge request reports