You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/05/15 16:03:24 UTC
[trafficserver] branch master updated: Fixes some markdown for the
CIDR condition
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 3591a2f Fixes some markdown for the CIDR condition
3591a2f is described below
commit 3591a2fa0f58d37bed98924dab7bb392a90f33ca
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Sat May 12 10:59:21 2018 +0100
Fixes some markdown for the CIDR condition
---
doc/admin-guide/plugins/header_rewrite.en.rst | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/admin-guide/plugins/header_rewrite.en.rst b/doc/admin-guide/plugins/header_rewrite.en.rst
index ee93bf6..7f3d7d6 100644
--- a/doc/admin-guide/plugins/header_rewrite.en.rst
+++ b/doc/admin-guide/plugins/header_rewrite.en.rst
@@ -289,7 +289,7 @@ arguments to another operator. For example::
set-header ATS-Req-UUID %{ID:UNIQUE}
CIDR
-~~
+~~~~
::
set-header @Client-CIDR %{CIDR:24,48}
@@ -299,12 +299,12 @@ to the IP, before producing a string. The typical use of this conditions is as
above, producing a header that contains a IP representation which has some
privacy properties. It can of course also be used as a regular condition, and
the output is a string that can be compared against. The two optional
-arguments are as follows:
+arguments are as follows::
IPv4-Mask Length, in bits, of the IPv4 address to preserve. Default: 24
IPv6-Mask Length, in bits, of the IPv6 address to preserve. Default: 48
-The two arguments, if provided, are comma separated. Valid syntax includes
+The two arguments, if provided, are comma separated. Valid syntax includes::
%{CIDR} Defaults to 24,48 (as above)
%{CIDR:16} IPv4 CIDR mask is 16 bits, IPv6 mask is 48
@@ -313,7 +313,7 @@ The two arguments, if provided, are comma separated. Valid syntax includes
A typical use case is to insert the @-prefixed header as above, and then use
this header in a custom log format, rather than logging the full client
IP. Another use case could be to make a special condition on a sub-net,
-e.g. ::
+e.g.::
cond %{CIDR:8} ="8.0.0.0"
set-header X-Is-Eight "Yes"
--
To stop receiving notification emails like this one, please contact
zwoop@apache.org.