#38 add Bool argument to set whether to check server domain name in TLS