String allowedHost = allowedHostsTokens.nextToken().trim();
String hostname = allowedHost;
if (allowedHost.indexOf('/') != -1) {
hostname = allowedHost.substring(0, allowedHost.indexOf('/'));
}
AddressType addressType = AddressIdentifier.getAddressType(hostname);
if (addressType == AddressType.IPv4) {
newAddressMatchers.add(new Inet4AddressMatcher(allowedHost));
} else if (addressType == AddressType.IPv6) {
newAddressMatchers.add(new Inet6AddressMatcher(allowedHost));
} else if (allowedHost.equals("*")) {