From 8fb874557b479dd9847d8550bbc55c57323dff64 Mon Sep 17 00:00:00 2001 From: jmc Date: Wed, 19 Apr 2017 10:48:57 +0000 Subject: [PATCH] better example; from hiltjo posthuma ok sthen --- usr.sbin/relayd/relayd.conf.5 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/relayd/relayd.conf.5 b/usr.sbin/relayd/relayd.conf.5 index c1dee3a4d29..6fe2e2bdc31 100644 --- a/usr.sbin/relayd/relayd.conf.5 +++ b/usr.sbin/relayd/relayd.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: relayd.conf.5,v 1.176 2017/03/25 23:14:04 claudio Exp $ +.\" $OpenBSD: relayd.conf.5,v 1.177 2017/04/19 10:48:57 jmc Exp $ .\" .\" Copyright (c) 2006 - 2016 Reyk Floeter .\" Copyright (c) 2006, 2007 Pierre-Yves Ritschard @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: March 25 2017 $ +.Dd $Mdocdate: April 19 2017 $ .Dt RELAYD.CONF 5 .Os .Sh NAME @@ -1467,9 +1467,9 @@ and include the variable in the hash to calculate the target host: .Bd -literal -offset indent http protocol "https" { - match header append "X-Forwarded-For" \e + match header set "X-Forwarded-For" \e value "$REMOTE_ADDR" - match header append "X-Forwarded-By" \e + match header set "X-Forwarded-By" \e value "$SERVER_ADDR:$SERVER_PORT" match header set "Keep-Alive" value "$TIMEOUT" -- 2.20.1