mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-22 15:15:48 +00:00
## Ports the `ipaccess` being added as a module from jetty 10 you can now do `java -jar start.jar --add-to-start=inetaccess` to add the inetaccess handler to your jetty config. ## Allows you to specify a list of connector names that the `InetAccessHandler` applies to This is important for those who run jetty using `start.jar` to make it possible to do things like have an open HTTPS connector but a whitelist restricted HTTP connector. Example: `etc/jetty-inetaccess.xml` ``` <?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> <Configure id="Server" class="org.eclipse.jetty.server.Server"> <Call name="insertHandler"> <Arg> <New id="InetAccessHandler" class="org.eclipse.jetty.server.handler.InetAccessHandler"> <Call name="exclude"><Arg>127.0.0.128-127.0.0.129</Arg></Call> <Call name="includeConnectorName"><Arg>http</Arg></Call> </New> </Arg> </Call> </Configure> ``` You can now `java -jar start.jar --add-to-start=https` and `java -jar start.jar --add-to-start=inetaccess` And you can now choose what inetaccess handler rules apply to http versus https. ## Adds a basic `InetAccessHandler` Unit Test Cover a few of the basic features of InetAccessHandler so it can have some coverage. Signed-off-by: Nicholas DiPiazza <nicholas.dipiazza@lucidworks.com>