Made TLS optional, disabled by default