- Add --http-proxy/--proxy [host:port] (default 127.0.0.1:4444) to route .i2p and .b32.i2p HTTP requests over I2P streams - Block clearnet hosts with 403 and reject CONNECT and https:// with 501 - Support ?i2paddresshelper= jump links that register host aliases - Add `just proxy` target and -h/--help usage output - Expire idle ratchet sessions after 300s and add RatchetSessionManager::drop_session for fresh NewSession handshakes - Add NetDb::remove_lease_set2 and bound the outbound pending queue to 64 entries
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
# Default recipe: list available commands
|
|
default:
|
|
@just --list
|
|
|
|
# Build and run an end-to-end demo of moon-i2p
|
|
demo:
|
|
python3 scripts/demo.py
|
|
|
|
# Build native router and SAMv3 client binaries
|
|
build:
|
|
moon build --target native cmd/router
|
|
moon build --target native cmd/client
|
|
|
|
# Start public I2P router with embedded HTTP proxy on 127.0.0.1:4444
|
|
proxy:
|
|
moon build --target native cmd/router
|
|
./_build/native/debug/build/cmd/router/router.exe --public --http-proxy 127.0.0.1:4444
|
|
|
|
# Run all MoonBit tests across wasm, js, and native targets
|
|
test:
|
|
moon test --target wasm
|
|
moon test --target js
|
|
moon test --target native
|
|
|
|
# Build native client and run Python E2E suite against MockSamBridge
|
|
e2e:
|
|
moon build --target native cmd/client
|
|
python3 scripts/e2e_test.py
|
|
|
|
# Type-check all packages across wasm, js, and native targets
|
|
check:
|
|
moon check --target wasm
|
|
moon check --target js
|
|
moon check --target native
|
|
|
|
# Update .mbti package interfaces and format MoonBit sources
|
|
fmt:
|
|
moon info && moon fmt
|