Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
staticIP/DynDns Settings
alloe16e4ba32ba3
diff --git a/htroot/SettingsAck_p.html b/htroot/SettingsAck_p.htmlindex 5d3d9fa47..3e07812fa 100644--- a/htroot/SettingsAck_p.html+++ b/htroot/SettingsAck_p.html@@ -52,7 +52,7 @@ Auto pop-up of the Status page is now <b>enabled</b><br>You are now permanently <b>online</b>. After a short while you should see the effect on the <a href="Status.html">status</a> page.<br>::<!-- 12 --><b>The Peer Name is: <font color="#556699">#[peerName]#</font><br>-<!--Your Peer Language is: <font color="#556699">#[peerLang]#</font><br>-->+<b>Your static Ip(or DynDns) is: <font color="#556699">#[staticIP]#</font><br>::<!-- 13 --><b>Seed Settings changed.#(success)#::You are now a principal peer.#(/success)#<br>::<!-- 14 -->diff --git a/htroot/SettingsAck_p.java b/htroot/SettingsAck_p.javaindex 171b67fdf..0044c72e6 100644--- a/htroot/SettingsAck_p.java+++ b/htroot/SettingsAck_p.java@@ -297,6 +297,8 @@ public class SettingsAck_p {// check if peer name already existsString peerName = (String) post.get("peername");+ String staticIP = (String)prop.get("staticIP");+ env.setConfig("staticIP", staticIP);yacySeed oldSeed = yacyCore.seedDB.lookupByName(peerName);if ((oldSeed == null) || (env.getConfig("peerName","").equals(peerName))) {@@ -314,6 +316,7 @@ public class SettingsAck_p {env.setConfig("peerName", peerName);prop.put("info", 12);//port or peername changedprop.put("info_peerName", peerName);+ prop.put("info_staticIP", staticIP);}} else {// deny changediff --git a/htroot/Settings_p.html b/htroot/Settings_p.htmlindex 12ee04ed8..a9d0bd478 100644--- a/htroot/Settings_p.html+++ b/htroot/Settings_p.html@@ -74,13 +74,11 @@ delete the file 'DATA/SETTINGS/httpProxy.conf' in the YaCy application root foldUsing your 'Home Page' and 'File Share' - zones you also have a platform to provide content to your new domain.</b><br><i>(hint: Choose a name that appears on a web page that tells something about you, visit the page, get the 'senior' status, and you can be found...)</i></td></tr>- <!--<tr valign="top">- <td>Peer Language:</td>- <td><input name="peerlang" type="text" size="2" maxlength="2" value="#[peerLang]#"></td>- <td>Enter 'de' for Deutsch, 'en' for English</td>+ <td>staticIP:</td>+ <td><input name="staticIP" type="text" size="32" maxlength="80" value="#[staticIP]#"></td>+ <td><b>If you have a static IP or a dyndns Account, enter it here to shorten the bootstrapping.</b><br></tr>- --><tr><td colspan="3"><input type="submit" name="generalsettings" value="submit"></td></tr>diff --git a/htroot/Settings_p.java b/htroot/Settings_p.javaindex ce6d7e9ac..bdcc8ce96 100644--- a/htroot/Settings_p.java+++ b/htroot/Settings_p.java@@ -69,6 +69,7 @@ public final class Settings_p {prop.put("port", env.getConfig("port", "8080"));prop.put("peerName", env.getConfig("peerName", "nameless"));+ prop.put("staticIP", env.getConfig("staticIP", ""));String peerLang = env.getConfig("htLocaleSelection", "default");if (peerLang.equals("default")) peerLang = "en";prop.put("peerLang", peerLang);