public static boolean addressListContains(List<IPAddress> addrList, IPAddress ipAddr) {
        
        // If either is null, return false
        if (ipAddr == null || addrList == null)
            return false;
        
        for (IPAddress ipEntry : addrList)
                    
            // If version matches and entry contains it, return true
            if (ipEntry.getIPVersion().equals(ipAddr.getIPVersion())
                    && ipEntry.contains(ipAddr))
                return true;
        
        // No match, so return false
        return false;
        
    }
Return true if the provided address list contains the client address,
or false if no match is found.

@param addrList
    The address list to check for matches.

@param ipAddr
    The client address to look for in the list.

@return 
    True if the client address is in the provided list, otherwise
    false.
guacamole-ext/src/main/java/org/apache/guacamole/properties/IPAddressListProperty.java