Skip to content

Commit 9880506

Browse files
committed
Always use a 0.0.0.0/0 default on Android instead of def1
Certain handset manufactures (like Samsung iirc) are handling 0.0.0.0/0 different from the split /1 routes, so push the 0.0.0.0/0 route to the OS. Change-Id: I22e4b73e744c765a43bdb29f6e18813d103ea757 Signed-off-by: Arne Schwabe <arne@rfc2549.org>
1 parent ee15777 commit 9880506

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/openvpn/options.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6997,7 +6997,10 @@ add_option(struct options *options, char *p[], bool is_inline, const char *file,
69976997
}
69986998
else if (streq(p[j], "def1"))
69996999
{
7000+
#ifndef TARGET_ANDROID
7001+
/* Android always uses 0.0.0.0/0, so silently ignore the flag */
70007002
options->routes->flags |= RG_DEF1;
7003+
#endif
70017004
}
70027005
else if (streq(p[j], "bypass-dhcp"))
70037006
{

0 commit comments

Comments
 (0)