File: remote_env.patch

package info (click to toggle)
openvpn 2.2.1-8%2Bdeb7u3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,960 kB
  • sloc: ansic: 60,297; sh: 5,704; python: 631; makefile: 282; perl: 242; awk: 13
file content (15 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: openvpn-2.1_rc15/options.c
===================================================================
--- openvpn-2.1_rc15.orig/options.c	2009-04-30 12:58:46.952616319 +0200
+++ openvpn-2.1_rc15/options.c	2009-04-30 12:58:50.352666598 +0200
@@ -769,8 +769,8 @@
   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)