Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/src/openvpn/options.c
- +++ b/src/openvpn/options.c
- @@ -4476,7 +4476,17 @@ add_option (struct options *options,
- else if (streq (p[0], "tun-ipv6"))
- {
- VERIFY_PERMISSION (OPT_P_UP);
- - options->tun_ipv6 = true;
- + FILE *disable_ipv6 = fopen("/proc/sys/net/ipv6/conf/all/disable_ipv6", "r");
- + if (disable_ipv6)
- + {
- + char status;
- + if (fread(&status, 1, 1, disable_ipv6) == 1)
- + {
- + if (status == '0')
- + options->tun_ipv6 = true;
- + }
- + fclose(disable_ipv6);
- + }
- }
- #ifdef ENABLE_IPROUTE
- else if (streq (p[0], "iproute") && p[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement