Commit Graph
4 Commits
Author SHA1 Message Date
nandi d95d4962f4 test: cover ratchet NSR expiry and add I2pDht::has_node
check / check (macos-latest) (push) Failing after 27s
check / check (ubuntu-latest) (push) Failing after 26s
check / check (windows-latest) (push) Failing after 28s
- Add Proposal 144 test for high-concurrency NSR survival, same-tag multi-NSR, and zombie ES expiry
- Add public I2pDht::has_node and assert node presence in the DHT round-trip test
- Reformat DHT announce cooldown call and query match arms in torrent_engine
2026-11-28 19:48:22 -08:00
nandi 5d97ad8b28 fix: harden ratchet sessions and throttle BitTorrent DHT traffic
check / check (macos-latest) (push) Failing after 26s
check / check (ubuntu-latest) (push) Failing after 27s
check / check (windows-latest) (push) Failing after 26s
- Ratchet: cap outbound NSR pending entries per peer and globally, age them out after 180s, and prune expired or excess sessions.
- Ratchet: keep NSR pending entries across multi-NSR replies, skip failed decrypts instead of aborting, and bound inbound pending entries.
- Ratchet: expire sessions with stale receive state or high message counts; only mark sessions confirmed when no reply has been received.
- Torrent DHT: add per-node cooldowns for get_peers and announce, limit fanout and pending transactions, and skip nodes already in the routing table.
- Torrent DHT: use slower maintenance and query intervals in public mode.
- Torrent peers: mark ratchet sessions stale after stalled SYN, connect timeout, handshake timeout, or idle timeout so they re-key.
- Torrent peers: raise the per-torrent peer limit to 16 and log I2CP decode errors in debug mode.
2026-11-28 19:43:10 -08:00
nandi 7a1b4325f9 feat: add Android APK with embedded I2P browser and torrent manager
check / check (ubuntu-latest) (push) Failing after 26s
check / check (macos-latest) (push) Failing after 29s
check / check (windows-latest) (push) Failing after 26s
- Add an Android app (org.mooni2p.browser) with an I2P WebView browser defaulting to insulaocculta.i2p, bookmarks, and a diagnostics dialog.
- Run the router in a foreground service and add a Torrents & DHT tab backed by the router API (manager.html).
- Handle magnet links and .torrent files from intents, the file picker, and .i2p downloads.
- Add scripts/build_apk.py and a `just apk` target that builds arm64-v8a and x86_64 APKs.
- Document the APK build and install steps in the README.
- Include related bittorrent, router, streaming, and ntcp2_net updates.
2026-11-28 17:55:42 -08:00
nandi fbe6818c4e feat: add I2P BitTorrent engine, DHT, and Firefox torrent extension
check / check (macos-latest) (push) Failing after 29s
check / check (ubuntu-latest) (push) Failing after 29s
check / check (windows-latest) (push) Failing after 30s
- Add pure-MoonBit bittorrent package: bencode codec, metainfo/magnet parsing with path traversal checks, peer wire protocol (BEP 10/9), and I2P Kademlia DHT with KRPC and 54-byte compact nodes
- Add SHA-1 primitive in crypto for torrent info hashes
- Add router torrent API and engine, enabled with --torrent-api (default 127.0.0.1:4445) and --download-dir
- Add Firefox WebExtension torrent manager with native messaging host and packed .xpi
- Add scripts to build a standalone Firefox + router AppImage and install the native host
- Add just targets (proxy, appimage, extension), README docs, and ignore .cache/ and dist/
2026-11-28 13:19:03 -08:00