summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-11-13 00:55:02 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-11-13 00:55:02 +0100
commit1aa664cef51e4b4ed4b35e569925acb4fd7b9b52 (patch)
tree616d3705094f7a68ddc7c3929b8a9c0afc20509a /options.c
parent61c40649de994c8f2ce713389294134aeb6cc8a7 (diff)
parentf0eac1a5979096c671b3674f9d80871f496d1da8 (diff)
downloadopenvpn-1aa664cef51e4b4ed4b35e569925acb4fd7b9b52.tar.gz
openvpn-1aa664cef51e4b4ed4b35e569925acb4fd7b9b52.tar.xz
openvpn-1aa664cef51e4b4ed4b35e569925acb4fd7b9b52.zip
Merge branch 'feat_misc' into beta2.2
Conflicts: Makefile.am openvpn.8 options.c socket.c ssl.c - feat_misc is missing a lot of bugfix2.1 changes Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/options.c b/options.c
index 717c5d7..bc6616b 100644
--- a/options.c
+++ b/options.c
@@ -128,8 +128,11 @@ static const char usage_message[] =
" AGENT user-agent\n"
#endif
#ifdef ENABLE_SOCKS
- "--socks-proxy s [p]: Connect to remote host through a Socks5 proxy at address\n"
- " s and port p (default port = 1080).\n"
+ "--socks-proxy s [p] [up] : Connect to remote host through a Socks5 proxy at\n"
+ " address s and port p (default port = 1080).\n"
+ " If proxy authentication is required,\n"
+ " up is a file containing username/password on 2 lines, or\n"
+ " 'stdin' to prompt for console.\n"
"--socks-proxy-retry : Retry indefinitely on Socks proxy errors.\n"
#endif
"--resolv-retry n: If hostname resolve fails for --remote, retry\n"
@@ -4505,6 +4508,7 @@ add_option (struct options *options,
options->ce.socks_proxy_port = 1080;
}
options->ce.socks_proxy_server = p[1];
+ options->ce.socks_proxy_authfile = p[3]; /* might be NULL */
}
else if (streq (p[0], "socks-proxy-retry"))
{