/** * Hosts that are ignored by okreplay. Any connections made will be allowed to proceed * normally and not be intercepted. */ public Collection<String> getIgnoreHosts() { if (isIgnoreLocalhost()) { Set<String> set = new LinkedHashSet<>(ignoreHosts); set.addAll(Network.getLocalAddresses()); return Collections.unmodifiableSet(set); } else { return ignoreHosts; } }
/** * Hosts that are ignored by okreplay. Any connections made will be allowed to proceed * normally and not be intercepted. */ public Collection<String> getIgnoreHosts() { if (isIgnoreLocalhost()) { Set<String> set = new LinkedHashSet<>(ignoreHosts); set.addAll(Network.getLocalAddresses()); return Collections.unmodifiableSet(set); } else { return ignoreHosts; } }