aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-05-30 20:20:36 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-05-30 20:20:36 +0000
commit2f26a79c8802d00d56660ddefc509719a78fa785 (patch)
tree2947a757e26d15435e813a218fa0c63bd62a9af2
parentFixed issue of symbol conflicts interfering with Windows CryptoAPI (diff)
downloadopenvpn-2f26a79c8802d00d56660ddefc509719a78fa785.tar.xz
Fixed bug where the remote_X environmental variables were not being
set correctly when the 'local' option is specifed. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4476 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r--options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options.c b/options.c
index ddf9f35..7687ec0 100644
--- a/options.c
+++ b/options.c
@@ -771,8 +771,8 @@ setenv_connection_entry (struct env_set *es,
setenv_str_i (es, "proto", proto2ascii (e->proto, false), i);
setenv_str_i (es, "local", e->local, i);
setenv_int_i (es, "local_port", e->local_port, i);
- setenv_str_i (es, "remote", e->local, i);
- setenv_int_i (es, "remote_port", e->local_port, i);
+ setenv_str_i (es, "remote", e->remote, i);
+ setenv_int_i (es, "remote_port", e->remote_port, i);
#ifdef ENABLE_HTTP_PROXY
if (e->http_proxy_options)