diff options
author | jestin | 2006-07-18 16:50:27 +0000 |
---|---|---|
committer | jestin | 2006-07-18 16:50:27 +0000 |
commit | e2d12584f2f3c78c3b49580e2160b032448c6f05 (patch) | |
tree | 30357176ec877406dfa6d59d70ee4149a0203512 /src/IvyWatcher.java | |
parent | d056e457e72e92353cba46b4311a55282ad2cc14 (diff) | |
download | ivy-java-e2d12584f2f3c78c3b49580e2160b032448c6f05.zip ivy-java-e2d12584f2f3c78c3b49580e2160b032448c6f05.tar.gz ivy-java-e2d12584f2f3c78c3b49580e2160b032448c6f05.tar.bz2 ivy-java-e2d12584f2f3c78c3b49580e2160b032448c6f05.tar.xz |
domain parsing changed a bit
Diffstat (limited to 'src/IvyWatcher.java')
-rwxr-xr-x | src/IvyWatcher.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IvyWatcher.java b/src/IvyWatcher.java index 4b06b1b..52edb4b 100755 --- a/src/IvyWatcher.java +++ b/src/IvyWatcher.java @@ -320,7 +320,8 @@ class IvyWatcher implements Runnable { RE numbersPoint = new RE("([0-9]|\\.)+"); if (!numbersPoint.match(net)) { // traceDebug("should only have numbers and point ? I won't add anything... " + net); - return net; + return "127.255.255.255"; + // return net; } net += ".255.255.255"; RE exp = new RE( "^(\\d+\\.\\d+\\.\\d+\\.\\d+).*"); @@ -333,7 +334,7 @@ class IvyWatcher implements Runnable { System.out.println(e); System.exit(0); } - // System.out.println("debug: returning net=[" + net+ "]"); + //System.out.println("next domain: "+net); return net; } @@ -341,6 +342,7 @@ class IvyWatcher implements Runnable { int sep_index = net.lastIndexOf( ":" ); int port= ( sep_index == -1 ) ? 0 :Integer.parseInt( net.substring( sep_index +1 )); // System.out.println("net: ["+net+"]\nsep_index: "+sep_index+"\nport: "+port); + //System.out.println("next port: "+port); return port; } |