From 43a127ff3af91a280e948290efb3d33b7ee215dc Mon Sep 17 00:00:00 2001 From: allo Date: Fri, 14 Oct 2005 12:51:56 +0000 Subject: [PATCH] allow httpsTunnels to other Ports than 443. (if secureHttps=false) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@940 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpd.java | 2 +- yacy.init | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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