From 7afa5c1b8e3a1cd0f6d0d86ffa8454a3e915eaf1 Mon Sep 17 00:00:00 2001 From: allo Date: Wed, 8 Mar 2006 12:23:26 +0000 Subject: [PATCH] staticIP fix tried to solve http://www.yacy-forum.de/viewtopic.php?p=18663#18663 D 2006/03/08 07:08:20 YACY yacyClient.publishMySeed mySeed error - not proper: IP is not proper: -UNRESOLVED_PATTERN- git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1859 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/hello.java | 2 +- source/de/anomic/yacy/yacySeed.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java index 7c6abf67b..022aa4b5e 100644 --- a/htroot/yacy/hello.java +++ b/htroot/yacy/hello.java @@ -128,7 +128,7 @@ public final class hello { } // we are only allowed to connect to the client IP address if it's not our own address - if (!isLocalIP && ! serverCore.useStaticIP) { + if (!isLocalIP) { serverCore.checkInterruption(); prop.put(yacySeed.YOURIP, clientip); diff --git a/source/de/anomic/yacy/yacySeed.java b/source/de/anomic/yacy/yacySeed.java index 0766e4367..d2faba092 100644 --- a/source/de/anomic/yacy/yacySeed.java +++ b/source/de/anomic/yacy/yacySeed.java @@ -613,7 +613,8 @@ public class yacySeed { final String ip = (String) this.dna.get(IP); if (ip == null) { return "IP is null"; } if (ip.length() < 8) { return "IP is too short: " + ip; } - if (!natLib.isProper(ip)) { return "IP is not proper: " + ip; } + //if (!natLib.isProper(ip)) { return "IP is not proper: " + ip; } //this does not work with staticIP + //TODO: try to resolv it, if its a hostname return null; }