allow to overwrite IP on IndexTransfer_p.html

(so you can transfer to localhost instead of your external IP)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1802 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 89286478e7
commit f6c80c296f

@ -23,6 +23,7 @@
<td class="small" >Transfered Words</td>
<td class="small" >Delete<br>Index</td>
<td class="small" >Remote<br>Peer</td>
<td class="small" >Overwrite IP<br />(blank for defaultip)</td>
<td class="small" >Start/Stop Transfer</td>
</tr>
#(running)#
@ -45,6 +46,9 @@
#{/hosts}#
</select>
</td>
<td class="small">
<input type="text" name="overwriteIP">
</td>
<td class="small">
<input type="submit" name="startIndexTransfer" value="Start Index Transfer">
</td>

@ -73,7 +73,10 @@ public final class IndexTransfer_p {
if (seed == null) {
prop.put("running_status","Disconnected peer");
} else {
boolean deleteIndex = post.get("deleteIndex", "0").equals("1");
boolean deleteIndex = post.get("deleteIndex", "0").equals("1");
if(prop.containsKey("overwriteIP") && ! ((String)prop.get("overwriteIP")).equals("")){
seed.setIP((String) prop.get("overwriteIP"));
}
switchboard.startTransferWholeIndex(seed,deleteIndex);
prop.put("LOCATION","");
return prop;

Loading…
Cancel
Save