From 35c3b36549d21c101b651347ad616022dc54e494 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 1 Feb 2016 23:34:07 +0900 Subject: [PATCH] nghttpx: Document special value localhost in Forwarded "by" and "for" params --- src/shrpx.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index 5a1863d5..9a08dab9 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -1722,11 +1722,12 @@ HTTP: of Forwarded header field. If "obfuscated" is given, the string is randomly generated at startup. If "ip" is given, the interface address of the connection, - including port number, is sent with "by" parameter. - User can also specify the static obfuscated string. The - limitation is that it must start with "_", and only - consists of character set [A-Za-z0-9._-], as described - in RFC 7239. + including port number, is sent with "by" parameter. In + case of UNIX domain socket, "localhost" is used instead + of address and port. User can also specify the static + obfuscated string. The limitation is that it must start + with "_", and only consists of character set + [A-Za-z0-9._-], as described in RFC 7239. Default: obfuscated --forwarded-for=(obfuscated|ip) Specify the parameter value sent out with "for" @@ -1734,7 +1735,8 @@ HTTP: given, the string is randomly generated for each client connection. If "ip" is given, the remote client address of the connection, without port number, is sent with - "for" parameter. + "for" parameter. In case of UNIX domain socket, + "localhost" is used instead of address. Default: obfuscated --no-via Don't append to Via header field. If Via header field is received, it is left unaltered.