summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-05-24 09:13:58 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-05-24 09:13:58 +0000
commit775a6ac2796a55bad3489d8532fd138d232fd2c4 (patch)
tree9bfc8630549cfeb47ec741d1dafab3094d0c1bf5 /options.c
parentb723833ba8038765bb22f273ad0de183329df25b (diff)
downloadopenvpn-775a6ac2796a55bad3489d8532fd138d232fd2c4.tar.gz
openvpn-775a6ac2796a55bad3489d8532fd138d232fd2c4.tar.xz
openvpn-775a6ac2796a55bad3489d8532fd138d232fd2c4.zip
Added new 'autolocal' redirect-gateway flag. When enabled, the OpenVPN
client will examine the routing table and determine whether (a) the OpenVPN server is reachable via a locally connected interface, or (b) traffic to the server must be forwarded through the default router. Only add a special bypass route for the OpenVPN server if (b) is true. If (a) is true, behave as if the 'local' flag is specified, and do not add a bypass route. The new 'autolocal' flag depends on the non-portable test_local_addr() function in route.c, which is currently only implemented for Windows. The 'autolocal' flag will act as a no-op on platforms that have not yet defined a test_local_addr() function. Increased TLS_CHANNEL_BUF_SIZE to 2048 from 1024 (this will allow for more option content to be pushed from server to client). Raised D_MULTI_DROPPED debug level to 4 from 3. Version 2.1_rc16b. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4446 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.c b/options.c
index ab75f6a..ddf9f35 100644
--- a/options.c
+++ b/options.c
@@ -4404,6 +4404,8 @@ add_option (struct options *options,
options->routes->flags |= RG_REROUTE_GW;
if (streq (p[j], "local"))
options->routes->flags |= RG_LOCAL;
+ else if (streq (p[j], "autolocal"))
+ options->routes->flags |= RG_AUTO_LOCAL;
else if (streq (p[j], "def1"))
options->routes->flags |= RG_DEF1;
else if (streq (p[j], "bypass-dhcp"))