Automatically enable secure connection if port is 6697