| 848 | } |
| 849 | |
| 850 | OPENVPN_CLIENT_EXPORT Status OpenVPNClient::connect() |
| 851 | { |
| 852 | #if !defined(OPENVPN_OVPNCLI_SINGLE_THREAD) |
| 853 | openvpn_io::detail::signal_blocker signal_blocker; // signals should be handled by parent thread |
| 854 | #endif |
| 855 | #if defined(OPENVPN_LOG_LOGTHREAD_H) && !defined(OPENVPN_LOG_LOGBASE_H) |
| 856 | #ifdef OPENVPN_LOG_GLOBAL |
| 857 | #error ovpn3 core logging object only supports thread-local scope |
| 858 | #endif |
| 859 | Log::Context log_context(this); |
| 860 | #endif |
| 861 | |
| 862 | OPENVPN_LOG(ClientAPI::OpenVPNClient::platform()); |
| 863 | |
| 864 | return do_connect(); |
| 865 | } |
| 866 | |
| 867 | OPENVPN_CLIENT_EXPORT Status OpenVPNClient::do_connect() |
| 868 | { |