If the string "(tls)" appears at the end, the tls flag is set to true and the default tls port is used if necessary.