Skip to content

Commit

Permalink
allow httpsTunnels to other Ports than 443. (if secureHttps=false)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@940 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Oct 14, 2005
1 parent 93c1cb9 commit 43a127f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/de/anomic/http/httpd.java
Expand Up @@ -655,7 +655,7 @@ public Boolean CONNECT(String arg) throws IOException {
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" +
Expand Down
3 changes: 3 additions & 0 deletions yacy.init
Expand Up @@ -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
Expand Down

0 comments on commit 43a127f

Please sign in to comment.