Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

allow httpsTunnels to other Ports than 443. (if secureHttps=false)

allo43a127ff3af9
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java
index c641db8c5..eb1f3acbb 100644
--- a/source/de/anomic/http/httpd.java
+++ b/source/de/anomic/http/httpd.java
@@ -655,7 +655,7 @@ public final class httpd implements serverHandler {
return serverCore.TERMINATE_CONNECTION;
}
- if (port != 443) {
+ if (port != 443 && switchboard.getConfig("secureHttps", "true").equals("true")) {
// security: connection only to ssl port
// we send a 403 (forbidden) error back
session.out.write((httpVersion + " 403 Connection to non-443 forbidden" +
diff --git a/yacy.init b/yacy.init
index 9ba9e00d6..877e08f93 100644
--- a/yacy.init
+++ b/yacy.init
@@ -551,6 +551,9 @@ crawler.MaxIdleThreads = 7
crawler.MinIdleThreads = 5
useYacyReferer = true
+#allow only 443(https-port) for https-proxy?
+#if you want to tunnel other protokols, set to false
+secureHttps = true
# specifies if the httpdFileHandler should cache
# the template-files from the htroot directory