Skip to content
Snippets Groups Projects
Commit 52c791cd authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Fix IPv6 stuff.

Thanks to bz@ for providing a hint how to work around a FreeBSD
bug.
parent 32524032
No related branches found
No related tags found
No related merge requests found
...@@ -267,11 +267,7 @@ static void route_traffic_to_device(struct config *config, ...@@ -267,11 +267,7 @@ static void route_traffic_to_device(struct config *config,
} else if (config->wire_protocol == AF_INET6) { } else if (config->wire_protocol == AF_INET6) {
asprintf(&route_command, asprintf(&route_command,
"route delete -inet6 %s > /dev/null 2>&1 ; " "route delete -inet6 %s > /dev/null 2>&1 ; "
#if defined(__FreeBSD__)
"route add -inet6 %s -interface tun0 %s > /dev/null",
#elif defined(__OpenBSD__) || defined(__NetBSD__)
"route add -inet6 %s %s > /dev/null", "route add -inet6 %s %s > /dev/null",
#endif
config->live_remote_prefix_string, config->live_remote_prefix_string,
config->live_remote_prefix_string, config->live_remote_prefix_string,
config->live_gateway_ip_string); config->live_gateway_ip_string);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment