From 04cc088f4db3a6d811c8334ca3fedcbfee9c280f Mon Sep 17 00:00:00 2001 From: vadym Date: Fri, 12 Jun 2020 08:35:41 -0700 Subject: [PATCH] 1. added default routes for all local networks --- .../io/github/chronosx88/yggdrasil/YggdrasilTunService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt index 5e21dfe..7f81082 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt @@ -61,7 +61,9 @@ class YggdrasilTunService : VpnService() { tunInterface = builder .addAddress(address, 7) - .addRoute("0.0.0.0", 1) + .addRoute("10.0.0.0", 8) + .addRoute("172.16.0.0", 12) + .addRoute("192.168.0.0", 16) .addRoute("0200::", 7) .setMtu(MAX_PACKET_SIZE) .establish()