From d0cb816cf8be68359617b61a55799f6330901f6a Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 25 Oct 2013 10:02:23 +0200 Subject: Implement custom HTTP header for http-proxy, and always send user-agent: There are some patched OpenVPN versions out there without source code (e.g. NDMVPN) that support adding custom http header. This patch adds custom header to OpenVPN and supports the syntax that the "in the wild" variants use. Patch v3 also prints all custom headers with other http options in --verb 5 Patch v4 does clean up the add_proxy_header function Acked-by: Gert Doering Message-Id: <1382688143-17247-1-git-send-email-arne@rfc2549.org> URL: http://article.gmane.org/gmane.network.openvpn.devel/7946 Signed-off-by: Gert Doering --- doc/openvpn.8 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') diff --git a/doc/openvpn.8 b/doc/openvpn.8 index c0b209c..bb35487 100644 --- a/doc/openvpn.8 +++ b/doc/openvpn.8 @@ -552,6 +552,13 @@ Set HTTP version number to .B AGENT user-agent \-\- Set HTTP "User-Agent" string to .B user-agent. + +.B CUSTOM\-HEADER name content \-\- +Adds the custom Header with +.B name +as name and +.B content +as the content of the custom HTTP header. .\"********************************************************* .TP .B \-\-socks-proxy server [port] -- cgit