Skip to content

Commit

Permalink
staticIP Property, for people with dyndns aliases ;-)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@54 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Apr 25, 2005
1 parent d005d74 commit c09c54c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion source/de/anomic/yacy/yacyCore.java
Expand Up @@ -361,7 +361,10 @@ private int publishMySeed(boolean force) {
// 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")) // ???????????????
Expand Down
2 changes: 1 addition & 1 deletion source/yacy.java
Expand Up @@ -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 = "-------------------------------------------------------------------------------";

Expand Down
3 changes: 3 additions & 0 deletions yacy.init
Expand Up @@ -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.
Expand Down

0 comments on commit c09c54c

Please sign in to comment.