From c702eb678683fd1ea21179ca88e1ce81c3051179 Mon Sep 17 00:00:00 2001 From: reger Date: Sat, 17 Dec 2016 02:38:52 +0100 Subject: [PATCH] del dead menu link to /repository (directory not created in current distribution -> old) --- htroot/Load_PHPBB3.java | 2 +- htroot/env/templates/submenuPublication.template | 1 - source/net/yacy/peers/SeedDB.java | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/htroot/Load_PHPBB3.java b/htroot/Load_PHPBB3.java index 2674fe19c..4d9b565bf 100644 --- a/htroot/Load_PHPBB3.java +++ b/htroot/Load_PHPBB3.java @@ -41,7 +41,7 @@ public class Load_PHPBB3 { String a = sb.peers.mySeed().getIP() == null ? null : sb.peers.mySeed().getPublicAddress(sb.peers.mySeed().getIP()); if (a == null) a = "localhost:" + sb.getLocalPort(); final boolean intranet = sb.getConfig(SwitchboardConstants.NETWORK_NAME, "").equals("intranet"); - final String repository = "http://" + a + "/repository/"; + final String repository = "http://" + a + "/"; prop.put("starturl", (intranet) ? repository : "http://"); prop.put("address", a); diff --git a/htroot/env/templates/submenuPublication.template b/htroot/env/templates/submenuPublication.template index 31c43ed3d..41a7d5661 100644 --- a/htroot/env/templates/submenuPublication.template +++ b/htroot/env/templates/submenuPublication.template @@ -3,6 +3,5 @@ diff --git a/source/net/yacy/peers/SeedDB.java b/source/net/yacy/peers/SeedDB.java index 4a00c3f9e..5b836b5fb 100644 --- a/source/net/yacy/peers/SeedDB.java +++ b/source/net/yacy/peers/SeedDB.java @@ -927,6 +927,9 @@ public final class SeedDB implements AlternativeDomainNames { /** * resolve a yacy address + * http://PEERHASH.yacyh or http://PEERNAME.yacy + * or deprecated http://subdom.PEERNAME.yacy resolved to http://host:port/subdom (no matching target servlets) + * to the actual host:port */ @Override public String resolve(String host) {