private Set<IPAddressString> getOrInstantiateRules(IPListConfig config) {
        Set<IPAddressString> patterns = ipPatternRulesCache.get(config);
        if (patterns != null) {
            return patterns;
        }
        patterns = config.getIpList().stream()
                .map(IPAddressString::new)
                .collect(Collectors.toSet());
        ipPatternRulesCache.put(config, patterns);
        return patterns;
    }
Gets the remote address for comparison.
@param request the request
@param config the config
gateway/engine/policies/src/main/java/io/apiman/gateway/engine/policies/AbstractIPListPolicy.java