This commit is contained in:
wentch
2016-01-09 10:11:35 +08:00
parent f15dee6a96
commit c2b0cbca8f
2 changed files with 20 additions and 5 deletions

View File

@@ -361,7 +361,7 @@
<span class="c"> 当Server为HTTP协议时, request节点才有效。</span>
<span class="c"> remoteaddr 节点: 替换请求方节点的IP地址 通常请求方是由nginx等web静态服务器转发过的则需要配置该节点。</span>
<span class="c"> 且value值只能是以request.headers.开头表示从request.headers中获取对应的header值。</span>
<span class="c"> 例如下面例子获取request.getRemoteAddr()值,如果header存在X-RemoteAddress值则返回X-RemoteAddress值不存在返回request.getRemoteAddress()。</span>
<span class="c"> 例如下面例子获取request.getRemoteAddr()值,header存在X-RemoteAddress值则返回X-RemoteAddress值否则返回getRemoteAddress()。</span>
<span class="c"> --&gt;</span>
<span class="nt">&lt;request&gt;</span>
<span class="nt">&lt;remoteaddr</span> <span class="na">value=</span><span class="s">&quot;request.headers.X-RemoteAddress&quot;</span><span class="nt">/&gt;</span>