X-Git-Url: http://git.megacz.com/?p=org.ibex.jinetd.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjinetd%2FHost.java;h=0a2773476642368f3a219e43bdcd707a391fee0a;hp=97942a8fcefe3a4f2e36f2b0e64a68193c6b01f4;hb=refs%2Fheads%2Fmaster;hpb=423647f727a58d037a93c2fdb81b76a3dcfc0c26 diff --git a/src/org/ibex/jinetd/Host.java b/src/org/ibex/jinetd/Host.java index 97942a8..0a27734 100644 --- a/src/org/ibex/jinetd/Host.java +++ b/src/org/ibex/jinetd/Host.java @@ -34,11 +34,14 @@ public class Host extends TreeClassLoader { public static void init(String path, String host, int depth, ClassLoader pcl) { if (!new File(path).exists() || !new File(path).isDirectory()) return; try { - InetAddress.getByName(host); + Log.warn(Host.class, "resolving " + host); + InetAddress ia = InetAddress.getByName(host); String pad = ""; while(pad.length() + host.length() < 30) pad += " "; - Log.info(Main.class, pad + host + " => " + path); - hosts.put(host, pcl = new Host(path, host, pcl)); + if (ia.equals(InetAddress.getLocalHost())) { + Log.info(Main.class, pad + host + " => " + path); + hosts.put(host, pcl = new Host(path, host, pcl)); + } } catch (UnknownHostException e) { if (depth >= 3) return; }