This is an automated email from the ASF dual-hosted git repository. isapir pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new b25b660ecd Format doc example b25b660ecd is described below commit b25b660ecd9f2e67793e506d853916d2c3330c48 Author: Igal Sapir <isa...@apache.org> AuthorDate: Sat May 20 17:54:00 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> - <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.0/8, ::1</param-value> - </init-param> - </filter> - <filter-mapping> - <filter-name>Remote CIDR Filter</filter-name> - <url-pattern>/*</url-pattern> - </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