diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2009-09-28 07:50:30 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2009-09-28 07:50:30 +0000 |
commit | 8e952ed1977eee75cecdf2a580f07a2c6da622a4 (patch) | |
tree | ede880226dbb622db695f6ee353cc65c4bf6d61a | |
parent | Added --server-poll-timeout option : when polling possible remote (diff) | |
download | openvpn-8e952ed1977eee75cecdf2a580f07a2c6da622a4.tar.xz |
Fixed a bug introduced in r4436 (2.1_rc17) where using the
redirect-gateway option by itself, without any extra parameters,
would cause the option to be ignored.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5011 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r-- | options.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4434,10 +4434,10 @@ add_option (struct options *options, int j; VERIFY_PERMISSION (OPT_P_ROUTE); rol_check_alloc (options); + if (streq (p[0], "redirect-gateway")) + options->routes->flags |= RG_REROUTE_GW; for (j = 1; j < MAX_PARMS && p[j] != NULL; ++j) { - if (streq (p[0], "redirect-gateway")) - options->routes->flags |= RG_REROUTE_GW; if (streq (p[j], "local")) options->routes->flags |= RG_LOCAL; else if (streq (p[j], "autolocal")) |