]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Don't send proxy requests for incoming connections.
[meshlink] / src / protocol_auth.c
index 1b061b397f9740b804be33c991b68c94409f05cb..f4a30a412071854530df028aad559d632171d568 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;