mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 00:29:20 +02:00
fixed bug where IPv6 was always being set on the tunnel interface
This commit is contained in:
parent
061fac44d2
commit
3eb959c8fe
|
@ -650,6 +650,7 @@ tun_setip(const char *ip, const char *other_ip, int netbits, int forward_v6)
|
||||||
# else
|
# else
|
||||||
display_ip = ip;
|
display_ip = ip;
|
||||||
# endif
|
# endif
|
||||||
|
if (forward_v6) {
|
||||||
fprintf(stderr, "Setting IPv6 of %s to ::%s\n", if_name, ip);
|
fprintf(stderr, "Setting IPv6 of %s to ::%s\n", if_name, ip);
|
||||||
|
|
||||||
snprintf(v6_cmdline, sizeof(cmdline),
|
snprintf(v6_cmdline, sizeof(cmdline),
|
||||||
|
@ -662,6 +663,7 @@ tun_setip(const char *ip, const char *other_ip, int netbits, int forward_v6)
|
||||||
if (v6_r != 0) {
|
if (v6_r != 0) {
|
||||||
return v6_r;
|
return v6_r;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
snprintf(cmdline, sizeof(cmdline),
|
snprintf(cmdline, sizeof(cmdline),
|
||||||
IFCONFIGPATH "ifconfig %s %s %s netmask %s",
|
IFCONFIGPATH "ifconfig %s %s %s netmask %s",
|
||||||
if_name,
|
if_name,
|
||||||
|
|
Loading…
Reference in New Issue