X-Git-Url: http://git.megacz.com/?p=org.ibex.jinetd.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjinetd%2FRoot.java;fp=src%2Forg%2Fibex%2Fjinetd%2FRoot.java;h=078ec05767f4f12f3429e0da557dcb11eec70bf6;hp=9c2fa932812008a6964362fc7480dfc39248cc0f;hb=792b114e78d5d2a23498fb8b784b404f89c4106a;hpb=99f8fd894be14226a64f1889657edf863edf8afb diff --git a/src/org/ibex/jinetd/Root.java b/src/org/ibex/jinetd/Root.java index 9c2fa93..078ec05 100644 --- a/src/org/ibex/jinetd/Root.java +++ b/src/org/ibex/jinetd/Root.java @@ -50,9 +50,9 @@ public class Root extends Loader { String ipaddr = part.indexOf('_') == -1 ? null : part.substring(0, part.indexOf('_')); String portnum = part.indexOf('_') == -1 ? part : part.substring(part.indexOf('_') + 1); try { - return new Port(this.path + File.separatorChar + part, - ipaddr == null ? null : InetAddress.getByName(ipaddr), - portnum.equals("*") ? 0 : Integer.parseInt(portnum)); + return Port.newPort(this.path + File.separatorChar + part, + ipaddr == null ? null : InetAddress.getByName(ipaddr), + portnum.equals("*") ? 0 : Integer.parseInt(portnum)); } catch (UnknownHostException e) { Log.warn(this, "can't resolve host for port directory: " + part); } catch (NumberFormatException e) { Log.warn(this, "invalid port directory: " + part); } catch (Exception e) { Log.warn(this, "error instantiating Port: " + part);