From 4b0bf5dff98b684b77418ad605f2eecca0f11e44 Mon Sep 17 00:00:00 2001 From: cnbatch Date: Wed, 8 May 2024 21:54:07 +0800 Subject: [PATCH] fixing #ifdef --- src/openvpn/tun.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 24b78f85b72..de3c61bd6f0 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -1182,11 +1182,6 @@ do_ifconfig_ipv6(struct tuntap *tt, const char *ifname, int tun_mtu, openvpn_execve_check(&argv, es, S_FATAL, "generic BSD ifconfig inet6 failed"); -#if defined(TARGET_OPENBSD) || defined(TARGET_NETBSD) || defined(TARGET_DARWIN) - /* and, hooray, we explicitly need to add a route... */ - add_route_connected_v6_net(tt, es); -#endif - #elif defined(TARGET_FREEBSD) /* read current fib number, codes are from: */ /* https://github.com/freebsd/freebsd-src/blob/f9716eee8ab45ad906d9b5c5233ca20c10226ca7/sbin/route/route.c#L269 */