Support specify csd-wrapper

This commit is contained in:
Kevin Yue committed 2024-02-04 07:47:18 +08:00
1 parent 662e4d0b8a
commit 1cf31449d6
10 files changed
+124 -10

No files matched your search

+3
View File
@@ -143,6 +143,9 @@ int vpn_connect(const vpn_options *options, vpn_connected_callback callback)
void vpn_disconnect()
{
char cmd = OC_CMD_CANCEL;
INFO("Stopping VPN connection: %d", g_cmd_pipe_fd);
if (write(g_cmd_pipe_fd, &cmd, 1) < 0)
{
ERROR("Failed to write to command pipe, VPN connection may not be stopped");