Skip to content

Commit

Permalink
staticIP fix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
allo committed Mar 8, 2006
1 parent f645287 commit 7afa5c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htroot/yacy/hello.java
Expand Up @@ -128,7 +128,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
}

// 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);
Expand Down
3 changes: 2 additions & 1 deletion source/de/anomic/yacy/yacySeed.java
Expand Up @@ -613,7 +613,8 @@ public String isProper() {
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;
}

Expand Down

0 comments on commit 7afa5c1

Please sign in to comment.