Don't send proxy requests for incoming connections.
[oweals/tinc.git] / src / protocol_auth.c
index 3bd34a01b5743bcf3ee5d354bf4cfdde7bc5c90a..5ae99e821cc4f024d651569d009c5d46fba858ae 100644 (file)
@@ -126,7 +126,7 @@ static bool send_proxyrequest(connection_t *c) {
 }
 
 bool send_id(connection_t *c) {
-       if(proxytype)
+       if(proxytype && c->outgoing)
                if(!send_proxyrequest(c))
                        return false;