This is an automated email from the ASF dual-hosted git repository.

isapir pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new af27d43ec7 Format doc example
af27d43ec7 is described below

commit af27d43ec795941c575006434e26612764ecd1cc
Author: Igal Sapir <isa...@apache.org>
AuthorDate: Sat May 20 18:06:52 2023 -0700

    Format doc example
---
 webapps/docs/config/filter.xml | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

diff --git a/webapps/docs/config/filter.xml b/webapps/docs/config/filter.xml
index 1c25e15adb..617167d3e4 100644
--- a/webapps/docs/config/filter.xml
+++ b/webapps/docs/config/filter.xml
@@ -1325,21 +1325,20 @@ FINE: Request "/docs/config/manager.html" with response 
status "200"
   </subsection>
 
   <subsection name="Example">
-    <p>To allow access only for the clients connecting from localhost:</p>
-    <pre>
-      &lt;filter>
-      &lt;filter-name>Remote CIDR Filter&lt;/filter-name>
-      
&lt;filter-class>org.apache.catalina.filters.RemoteCIDRFilter&lt;/filter-class>
-      &lt;init-param>
-      &lt;param-name>allow&lt;/param-name>
-      &lt;param-value>127.0.0.0/8, ::1&lt;/param-value>
-      &lt;/init-param>
-      &lt;/filter>
-      &lt;filter-mapping>
-      &lt;filter-name>Remote CIDR Filter&lt;/filter-name>
-      &lt;url-pattern>/*&lt;/url-pattern>
-      &lt;/filter-mapping>
-    </pre>
+    <p>To allow access only for the clients connecting from localhost and from 
local network 192.68.0.*:</p>
+    <source><![CDATA[      <filter>
+        <filter-name>Remote CIDR Filter</filter-name>
+        
<filter-class>org.apache.catalina.filters.RemoteCIDRFilter</filter-class>
+        <init-param>
+          <param-name>allow</param-name>
+          <param-value>127.0.0.1, ::1, 192.68.0.0/24</param-value>
+        </init-param>
+      </filter>
+
+      <filter-mapping>
+        <filter-name>Remote CIDR Filter</filter-name>
+        <url-pattern>/*</url-pattern>
+      </filter-mapping>]]></source>
   </subsection>
 
 </section>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to