diff --git a/source/net/yacy/http/AbstractRemoteHandler.java b/source/net/yacy/http/AbstractRemoteHandler.java index e27be93ee..5f9ad9277 100644 --- a/source/net/yacy/http/AbstractRemoteHandler.java +++ b/source/net/yacy/http/AbstractRemoteHandler.java @@ -89,7 +89,7 @@ abstract public class AbstractRemoteHandler extends AbstractHandler implements H int hostSplitPos = host.indexOf(':'); String hostOnly = hostSplitPos < 0 ? host : host.substring(0, hostSplitPos); - if (hostOnly == sb.peers.mySeed().getHexHash() + ".yacyh") return; // bugfix by P. Dahl + if (hostOnly.equals(sb.peers.mySeed().getHexHash() + ".yacyh")) return; // bugfix by P. Dahl if (localVirtualHostNames.contains(hostOnly)) return; // no proxy request (quick check), continue processing by handlers if (Domains.isLocal(hostOnly, null)) return; // no proxy, continue processing by handlers if (hostOnly.startsWith(sb.peers.myIP())) { // remote access to my external IP, continue processing by handlers