mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-25 16:06:14 -05:00
feat: add disable_ipv6 option (related #364)
This commit is contained in:
1 parent
92b858884c
commit
90a8c11acb
7 files changed
+39
-6
No files matched your search
@@ -21,6 +21,8 @@ typedef struct vpn_options
|
||||
const char *csd_wrapper;
|
||||
|
||||
const int mtu;
|
||||
|
||||
const int disable_ipv6;
|
||||
} vpn_options;
|
||||
|
||||
int vpn_connect(const vpn_options *options, vpn_connected_callback callback);
|
||||
@@ -35,7 +37,7 @@ static char *format_message(const char *format, va_list args)
|
||||
int len = vsnprintf(NULL, 0, format, args_copy);
|
||||
va_end(args_copy);
|
||||
|
||||
char *buffer = malloc(len + 1);
|
||||
char *buffer = (char*)malloc(len + 1);
|
||||
if (buffer == NULL)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
Reference in new issue
Block a user