fix tls config, accept any server name

To be honest, i accidentally opened this pull request to your repo, it was intended for my fork only.
In any case, the issue is fixed in main repo, so we can skip this discussion, if you will.