java.lang.Object
com.github.markusbernhardt.proxy.selector.whitelist.IpRangeFilter
All Implemented Interfaces:
UriFilter

public class IpRangeFilter extends Object implements UriFilter
Filters an URI by inspecting it's IP address is in a given range. The range as must be defined in CIDR notation. e.g. 192.0.2.1/24,
  • Field Details

    • matchTo

      private byte[] matchTo
    • numOfBits

      int numOfBits
  • Constructor Details

    • IpRangeFilter

      public IpRangeFilter(String matchTo)
      Constructor
      Parameters:
      matchTo - the match subnet in CIDR notation.
  • Method Details