Roxen.git / server / modules / proxies / connect.pike

version» Context lines:

Roxen.git/server/modules/proxies/connect.pike:1:   // This is a roxen module. Copyright © 1996 - 2009, Roxen IS.      // An implementation of the CONNECT methos, used for SSL tunneling in   // Netscape (the "Secure proxy" field)    - constant cvs_version = "$Id: connect.pike,v 1.21 2009/05/07 14:15:55 mast Exp $"; + constant cvs_version = "$Id$";   constant thread_safe = 1;         inherit "module";   inherit "socket";      #include <module.h>   #include <proxyauth.pike>      #define CONN_REFUSED query("ConRefused")
Roxen.git/server/modules/proxies/connect.pike:43:    "<hr noshade>\n<font size=+2>Please try again later.</font>\n"    "<i>Sorry</i>\n<hr noshade>",    /**/    "Connection refused message",    TYPE_TEXT_FIELD,    "The message to send when the requested host deny the connection.");       defvar("NoHost",    /**/    "505 No such host\nContent-type: text/html\n\n" -  "<title>The host does not erxist</title>\n" +  "<title>The host does not exist</title>\n"    "<h1 align=center>I am unable to locate that host</h1>\n"    "<i>Sorry</i>\n<hr noshade>",    /**/    "No such host message",    TYPE_TEXT_FIELD,    "The message to send when the requested host cannot be found.");       defvar("AllowedPorts", ({ "1-65535" }), "Allowed Ports",    TYPE_STRING_LIST,    "Connections will only be made to ports matching this list "
Roxen.git/server/modules/proxies/connect.pike:143:    hmm = ({ id->not_query, 0 });       id->my_fd->write("HTTP/1.0 200 Connected\r\n\r\n");       to->set_id(({ 1, myid, hmm }));    to->set_nonblocking(send_some,write_some,end_it);       id->my_fd->set_id(({ 0, myid, hmm }));    id->my_fd->set_nonblocking(send_some, write_some, end_it);    id->do_not_disconnect = 0; +  id->my_fd = 0;    id->disconnect();   }      inline private string find_host(string from)   {    return (from/":")[0];   }      inline private int find_port(string from)   {