Support HIP report (#309)

This commit is contained in:
Kevin Yue authored and GitHub committed 2024-02-05 18:35:45 +08:00
1 parent 662e4d0b8a
commit db9249bd61
12 files changed
+334 -2

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");