Skip to contentSkip to conversation

Do not install a IPv6 host route for the VPN on Android

PATCH Superseded Arne Schwabe 1 participant 1 message Sep 15, 2015

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Do not install a IPv6 host route for the VPN on Android

Routing loops are avoided using the VPNService API protect API

---
 src/openvpn/route.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
src/openvpn/route.c +3 -1
index 3959abd..7e4a766 100644
@@ -768,6 +768,7 @@ init_route_ipv6_list (struct route_ipv6_list *rl6,
             r6->next = rl6->routes_ipv6;
             rl6->routes_ipv6 = r6;
 
+#ifndef TARGET_ANDROID
 	    if ( remote_host_ipv6 &&
 		  route_ipv6_match_host( r6, remote_host_ipv6 ) )
 	      {
@@ -776,7 +777,8 @@ init_route_ipv6_list (struct route_ipv6_list *rl6,
 			print_in6_addr (r6->network, 0, &gc), r6->netbits,
 			print_in6_addr (*remote_host_ipv6, 0, &gc));
 	      }
-          }
+#endif
+	  }
       }
   }
 
Signature · 1 line
2.3.2 (Apple Git-55)