TLS proxy and fail-over