- Save active and paused torrents to torrents.edn on add, remove, pause, resume, and metadata fetch, then restore them on router startup. - Default path is $MOON_I2P_DATA_DIR, then $XDG_DATA_HOME, then ~/.local/share/moon-i2p-browser. Add --torrent-state <file> to override, or --no-torrent-state to disable. - Write the state file atomically (temp file, fsync, rename). A corrupt or unsupported file logs a warning and does not block startup. - Verify restored pieces incrementally in the background for large torrents; these show as state "checking" in /api/torrents. - Expose state_file in /api/status and the startup banner. - Add standard RFC 4648 Base64 encode/decode helpers, used for the info-b64 field. - Add the moonedn dependency and pass --torrent-state from the Android service.
20 lines
395 B
AMPL
20 lines
395 B
AMPL
name = "experiments/moon_i2p"
|
|
|
|
version = "0.1.0"
|
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://git.site.latha.org/experiments/moon-i2p"
|
|
|
|
license = "Apache-2.0"
|
|
|
|
keywords = [ "i2p", "cryptography", "networking", "privacy", "noise", "ntcp2" ]
|
|
|
|
preferred_target = "wasm"
|
|
|
|
description = "Pure MoonBit port of the I2P (Invisible Internet Project) protocol suite"
|
|
|
|
import {
|
|
"jqlssg/moonedn@0.1.2",
|
|
}
|