Don't send proxy requests for incoming connections.
[tinc] / src / protocol_auth.c
index 1b061b3..f4a30a4 100644 (file)
@@ -139,7 +139,7 @@ bool send_id(connection_t *c) {
                        minor = myself->connection->protocol_minor;
        }
 
-       if(proxytype)
+       if(proxytype && c->outgoing)
                if(!send_proxyrequest(c))
                        return false;