staticIP Property, for people with dyndns aliases ;-)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@54 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent d005d7484e
commit c09c54c652

@ -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")) // ???????????????

@ -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 = "-------------------------------------------------------------------------------";

@ -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.

Loading…
Cancel
Save