Support HIP report (#309)

This commit is contained in:
Kevin Yue
2024-02-05 05:35:45 -05:00
committed by GitHub
parent 662e4d0b8a
commit db9249bd61
12 changed files with 334 additions and 2 deletions

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