Don't send proxy requests for incoming connections.
This commit is contained in:
parent
ee63f2a32b
commit
079dcd0179
4 changed files with 5 additions and 7 deletions
|
|
@ -111,7 +111,7 @@ void forward_request(connection_t *from, const char *request) {
|
|||
}
|
||||
|
||||
bool receive_request(connection_t *c, const char *request) {
|
||||
if(proxytype == PROXY_HTTP && c->allow_request == ID) {
|
||||
if(c->outgoing && proxytype == PROXY_HTTP && c->allow_request == ID) {
|
||||
if(!request[0] || request[0] == '\r')
|
||||
return true;
|
||||
if(!strncasecmp(request, "HTTP/1.1 ", 9)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue