From c09c54c652690606920d4332ff91201dc6484b50 Mon Sep 17 00:00:00 2001 From: allo Date: Mon, 25 Apr 2005 12:34:11 +0000 Subject: [PATCH] staticIP Property, for people with dyndns aliases ;-) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@54 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacyCore.java | 5 ++++- source/yacy.java | 2 +- yacy.init | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/yacy/yacyCore.java b/source/de/anomic/yacy/yacyCore.java index a8456c99c..2adf998fe 100644 --- a/source/de/anomic/yacy/yacyCore.java +++ b/source/de/anomic/yacy/yacyCore.java @@ -361,7 +361,10 @@ public class yacyCore { // still no success: ask own NAT or internet responder boolean DI604use = switchboard.getConfig("DI604use", "false").equals("true"); String DI604pw = switchboard.getConfig("DI604pw", ""); - String ip = natLib.retrieveIP(DI604use, DI604pw, (switchboard.getConfig("yacyDebugMode", "false")=="false" ? false : true)); + String ip = switchboard.getConfig("staticIP", ""); + if(ip.equals("")){ + ip = natLib.retrieveIP(DI604use, DI604pw, (switchboard.getConfig("yacyDebugMode", "false")=="false" ? false : true)); + } //System.out.println("DEBUG: new IP=" + ip); seedDB.mySeed.put("IP", ip); if (seedDB.mySeed.get("PeerType", "junior").equals("junior")) // ??????????????? diff --git a/source/yacy.java b/source/yacy.java index 55668804c..8a1f04024 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -79,7 +79,7 @@ public final class yacy { // static objects private static final String vString = "@REPL_VERSION@"; - private static final String vDATE = "20050420"; + private static final String vDATE = "@REPL_VERSION@"; private static final String copyright = "[ YACY Proxy v" + vString + ", build " + vDATE + " by Michael Christen / www.yacy.net ]"; private static final String hline = "-------------------------------------------------------------------------------"; diff --git a/yacy.init b/yacy.init index 8a2aa99ef..e41244f1d 100644 --- a/yacy.init +++ b/yacy.init @@ -261,6 +261,9 @@ onlineMode=2 # accepted as peer addresses yacyDebugMode=false +#staticIP if you have a static IP, you can use this setting +staticIP= + # if the process is running behind a NAT or ROUTER, we cannot easily identify # the public IP of the process. We can ask a public IP responder, but cannot # rely on it. Therefore, AnomicHTTPProxy includes it's own responder.