use peeraddress for link in remote crawl list

to make link work without enabled proxy

upd pom for Jetty (missing in last commit)
pull/1/head
reger 10 years ago
parent fe5d4e6c7b
commit ac61a39828

@ -52,7 +52,7 @@
</tr> </tr>
#{list}# #{list}#
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#"> <tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">
<td><a href="http://www.#[fullname]#.yacy">#[shortname]#</a></td> <td><a href="http://#[peeraddress]#">#[shortname]#</a></td>
<td align="right">#[RCount]#</td> <td align="right">#[RCount]#</td>
<td align="right">#[version]#</td> <td align="right">#[version]#</td>
<td align="right">#[ppm]#</td> <td align="right">#[ppm]#</td>

@ -114,8 +114,9 @@ public class RemoteCrawl_p {
prop.put(STR_TABLE_LIST + conCount + "_dark", ((dark) ? 1 : 0) ); dark=!dark; prop.put(STR_TABLE_LIST + conCount + "_dark", ((dark) ? 1 : 0) ); dark=!dark;
String shortname = seed.get(Seed.NAME, "deadlink"); String shortname = seed.get(Seed.NAME, "deadlink");
if (shortname.length() > 20) shortname = shortname.substring(0, 20) + "..."; if (shortname.length() > 20) shortname = shortname.substring(0, 20) + "...";
final String peeradr = seed.getPublicAddress(seed.getIPs().iterator().next());
prop.putHTML(STR_TABLE_LIST + conCount + "_shortname", shortname); prop.putHTML(STR_TABLE_LIST + conCount + "_shortname", shortname);
prop.putHTML(STR_TABLE_LIST + conCount + "_fullname", seed.get(Seed.NAME, "deadlink")); prop.putHTML(STR_TABLE_LIST + conCount + "_peeraddress", peeradr);
prop.put(STR_TABLE_LIST + conCount + "_age", seed.getAge()); prop.put(STR_TABLE_LIST + conCount + "_age", seed.getAge());
String[] yv = yacyVersion.combined2prettyVersion(seed.get(Seed.VERSION, "0.1"), shortname); String[] yv = yacyVersion.combined2prettyVersion(seed.get(Seed.VERSION, "0.1"), shortname);
prop.putHTML(STR_TABLE_LIST + conCount + "_version", yv[0] + "/" + yv[1]); prop.putHTML(STR_TABLE_LIST + conCount + "_version", yv[0] + "/" + yv[1]);

@ -549,67 +549,67 @@
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId> <artifactId>jetty-server</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId> <artifactId>jetty-servlet</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlets</artifactId> <artifactId>jetty-servlets</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId> <artifactId>jetty-webapp</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId> <artifactId>jetty-util</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-xml</artifactId> <artifactId>jetty-xml</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-http</artifactId> <artifactId>jetty-http</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-security</artifactId> <artifactId>jetty-security</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-io</artifactId> <artifactId>jetty-io</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-continuation</artifactId> <artifactId>jetty-continuation</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId> <artifactId>jetty-jmx</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-proxy</artifactId> <artifactId>jetty-proxy</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-deploy</artifactId> <artifactId>jetty-deploy</artifactId>
<version>9.2.4.v20141103</version> <version>9.2.6.v20141205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.bitlet</groupId> <groupId>org.bitlet</groupId>

Loading…
Cancel
Save