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
pull/1/head
allo 19 years ago
parent f6452879d5
commit 7afa5c1b8e

@ -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);

@ -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;
}

Loading…
Cancel
Save