code: boolean isPreferredAddress(InetAddress address) {
  
  		if (this.properties.isUseOnlySiteLocalInterfaces()) {
  			final boolean siteLocalAddress = address.isSiteLocalAddress();
  			if (!siteLocalAddress) {
  				this.log.trace("Ignoring address: " + address.getHostAddress());
  			}
  			return siteLocalAddress;
  		}
  		final List<String> preferredNetworks = this.properties.getPreferredNetworks();
  		if (preferredNetworks.isEmpty()) {
  			return true;
  		}
  		for (String regex : preferredNetworks) {
  			final String hostAddress = address.getHostAddress();
  			if (hostAddress.matches(regex) || hostAddress.startsWith(regex)) {
  				return true;
  			}
  		}
  		this.log.trace("Ignoring address: " + address.getHostAddress());
  		return false;
  	}
docs: For testing.