Evgeny a73e36b559 Fix mesh topology: try normal decryption first, then INIT
Reversed the decryption order:
1. If link exists with session_ready, try normal decryption first
2. If normal decryption succeeds, process packet normally (goto process_decrypted)
3. If normal decryption fails OR no link OR no session, try INIT decryption
4. If INIT succeeds, create new server-side connection and link

This is more efficient because:
- Most packets are regular data (use normal decryption)
- INIT packets are rare (only during connection setup)
- Works correctly for both standard client-server and mesh topologies

All 23 tests now pass.
2026-02-16 01:02:10 +03:00
S
Description
No description provided
GPL-3.0
488 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 63.3%
C++ 18.8%
Kotlin 9.2%
HTML 5.5%
Python 1.2%
Other 1.9%