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.