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
pull/1/head
allo 19 years ago
parent 93c1cb9226
commit 43a127ff3a

@ -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" +

@ -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

Loading…
Cancel
Save