From fd9bde0479318cdca4828a67b3fd71584f6100d9 Mon Sep 17 00:00:00 2001 From: anhtvcengroup <12346a@A> Date: Fri, 21 Apr 2023 15:19:50 +0700 Subject: [PATCH] get ret out from lib cloak --- .../OpenVPN3/openvpn/transport/client/pluggable/ptcli.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/OpenVPN3/openvpn/transport/client/pluggable/ptcli.hpp b/Sources/OpenVPN3/openvpn/transport/client/pluggable/ptcli.hpp index a2bc39d..0ef0aac 100644 --- a/Sources/OpenVPN3/openvpn/transport/client/pluggable/ptcli.hpp +++ b/Sources/OpenVPN3/openvpn/transport/client/pluggable/ptcli.hpp @@ -330,6 +330,11 @@ namespace openvpn { bool socket_protect() { if (config->socket_protect) { + OPENVPN_LOG("GO to function socket_protect"); + + int ret_out = connection->get_ret_out_int(); + std::string s = std::to_string(ret_out); + OPENVPN_LOG("ret out from cloak: " << s); int fd = connection->native_handle(); // short circuit prevents socket_protect from being evaluated when fd < 0 if (fd < 0 || !config->socket_protect->socket_protect(fd, server_endpoint_addr())) @@ -349,6 +354,7 @@ namespace openvpn { OPENVPN_LOG("GO TO start_impl_ NOT halt"); if (!error) { + OPENVPN_LOG("GO TO start_impl_ NOT error"); impl.reset(new Link(io_context, this, connection,