|
@@ -580,7 +580,13 @@ public class SecurityUtil {
|
|
addr = getByNameWithSearch(host);
|
|
addr = getByNameWithSearch(host);
|
|
if (addr == null) {
|
|
if (addr == null) {
|
|
addr = getByExactName(host);
|
|
addr = getByExactName(host);
|
|
|
|
+ // If multiple loopback addresses are present, a direct lookup
|
|
|
|
+ // will be helpful
|
|
|
|
+ if (addr == null) {
|
|
|
|
+ addr = InetAddress.getByName(host);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// unresolvable!
|
|
// unresolvable!
|