summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2011-03-13 06:59:25 +0000
committerDavid Sommerseth <dazo@users.sourceforge.net>2011-04-25 22:13:22 +0200
commit1c5ff7722dbd3e32aa3e5b7d5cb77773f083472d (patch)
tree7eccc7d6ba60b93adccf7c473f2489da7db0a024 /options.c
parent6c34e74f1340a72ab7dce077e4d326f03989322c (diff)
downloadopenvpn-1c5ff7722dbd3e32aa3e5b7d5cb77773f083472d.tar.gz
openvpn-1c5ff7722dbd3e32aa3e5b7d5cb77773f083472d.tar.xz
openvpn-1c5ff7722dbd3e32aa3e5b7d5cb77773f083472d.zip
Added optional journal directory argument to "port-share" directive, for reporting client IP origins of proxied connections.
git-svn-id: http://svn.openvpn.net/projects/branches/BETA21@7031 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'options.c')
-rw-r--r--options.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/options.c b/options.c
index e8e0d7a..8ace13f 100644
--- a/options.c
+++ b/options.c
@@ -427,8 +427,9 @@ static const char usage_message[] =
"--max-clients n : Allow a maximum of n simultaneously connected clients.\n"
"--max-routes-per-client n : Allow a maximum of n internal routes per client.\n"
#if PORT_SHARE
- "--port-share host port : When run in TCP mode, proxy incoming HTTPS sessions\n"
- " to a web server at host:port.\n"
+ "--port-share host port [dir] : When run in TCP mode, proxy incoming HTTPS\n"
+ " sessions to a web server at host:port. dir specifies an\n"
+ " optional directory to write origin IP:port data.\n"
#endif
#endif
"\n"
@@ -5101,6 +5102,7 @@ add_option (struct options *options,
options->port_share_host = p[1];
options->port_share_port = port;
+ options->port_share_journal_dir = p[3];
}
#endif
else if (streq (p[0], "client-to-client"))