27b02cef688ae1c8204f4e84ba349f0267a1f09d
When receiving packets on client links, try INIT decryption first. If it fails (e.g., for INIT_RESPONSE packets), fallback to normal decryption using the existing link's crypto context. This fixes mesh topology where both nodes send INIT simultaneously, while maintaining compatibility with standard client-server mode where client links receive INIT_RESPONSE packets. Changes: - If link==NULL OR link is client (is_server==0), try INIT decryption - On any INIT decryption error, if we have an existing link, goto normal_decrypt - Added normal_decrypt label before standard packet processing - This allows handling both incoming INIT (create server link) and incoming responses (use existing client link) correctly
Languages
C
64.6%
C++
17.1%
Kotlin
9.4%
HTML
5.8%
Python
1.2%
Other
1.7%