projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't send proxy requests for incoming connections.
[oweals/tinc.git]
/
src
/
protocol.c
diff --git
a/src/protocol.c
b/src/protocol.c
index f36538e382899ca4f4d3a27ff4267899fb64f185..9ef90825c75ac535d3aad463f5742dde49c28137 100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-125,7
+125,7
@@
void forward_request(connection_t *from) {
bool receive_request(connection_t *c) {
int request;
bool receive_request(connection_t *c) {
int request;
- if(proxytype == PROXY_HTTP && c->allow_request == ID) {
+ if(
c->outgoing &&
proxytype == PROXY_HTTP && c->allow_request == ID) {
if(!c->buffer[0] || c->buffer[0] == '\r')
return true;
if(!strncasecmp(c->buffer, "HTTP/1.1 ", 9)) {
if(!c->buffer[0] || c->buffer[0] == '\r')
return true;
if(!strncasecmp(c->buffer, "HTTP/1.1 ", 9)) {