staticIP/DynDns Settings

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

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

@ -297,6 +297,8 @@ public class SettingsAck_p {
// check if peer name already exists
String 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 changed
prop.put("info_peerName", peerName);
prop.put("info_staticIP", staticIP);
}
} else {
// deny change

@ -74,13 +74,11 @@ delete the file 'DATA/SETTINGS/httpProxy.conf' in the YaCy application root fold
Using 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>

@ -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);

Loading…
Cancel
Save