From 92907bced36abbc640e0a8d57787ea3cacce140b Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Thu, 2 Feb 2023 08:09:07 +0300 Subject: [PATCH] hardcoded tcp for the openvpn-cloak container --- client/configurators/cloak_configurator.cpp | 2 +- client/server_scripts/openvpn_cloak/template.ovpn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/configurators/cloak_configurator.cpp b/client/configurators/cloak_configurator.cpp index 50f554dc..0cfd74fc 100644 --- a/client/configurators/cloak_configurator.cpp +++ b/client/configurators/cloak_configurator.cpp @@ -43,7 +43,7 @@ QString CloakConfigurator::genCloakConfig(const ServerCredentials &credentials, config.insert("StreamTimeout", 300); // transfer params to protocol runner - config.insert(config_key::transport_proto, "$OPENVPN_TRANSPORT_PROTO"); + config.insert(config_key::transport_proto, "tcp"); config.insert(config_key::remote, credentials.hostName); config.insert(config_key::port, "$CLOAK_SERVER_PORT"); diff --git a/client/server_scripts/openvpn_cloak/template.ovpn b/client/server_scripts/openvpn_cloak/template.ovpn index 4fc2b2c3..7f9494b9 100644 --- a/client/server_scripts/openvpn_cloak/template.ovpn +++ b/client/server_scripts/openvpn_cloak/template.ovpn @@ -1,6 +1,6 @@ client dev tun -proto $OPENVPN_TRANSPORT_PROTO +proto tcp resolv-retry infinite nobind persist-key