in ingest/src/main/java/com/microsoft/azure/kusto/ingest/IngestClientBase.java [41:59]
static boolean isReservedHostname(String rawUri) {
URI uri = URI.create(rawUri);
if (!uri.isAbsolute()) {
return true;
}
String authority = uri.getAuthority().toLowerCase();
boolean isIpAddress;
if (authority.startsWith("[") && authority.endsWith("]")) {
isIpAddress = true;
} else {
isIpAddress = InetAddressUtils.isIPv4Address(authority);
}
boolean isLocalhost = authority.contains("localhost");
String host = CoreUtils.isNullOrEmpty(uri.getHost()) ? "" : uri.getHost();
return isLocalhost || isIpAddress || host.equalsIgnoreCase("onebox.dev.kusto.windows.net");
}