feat: add HTTP-over-I2P proxy to router daemon
- 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
This commit is contained in:
1 parent
54cfb2faa9
commit
14eae00f5c
15 files changed
+1941
-41
No files matched your search
@@ -108,6 +108,7 @@ pub struct RatchetPeerSession {
|
||||
mut local_next_priv : Bytes?
|
||||
mut local_next_pub : Bytes?
|
||||
mut remote_next_pub : Bytes?
|
||||
mut last_used_sec : UInt32
|
||||
}
|
||||
pub fn RatchetPeerSession::apply_dh_ratchet(Self, Bytes, Bytes, for_send~ : Bool) -> Unit raise RatchetError
|
||||
pub fn RatchetPeerSession::encrypt_existing(Self, Array[RatchetBlock]) -> Bytes raise RatchetError
|
||||
@@ -120,6 +121,7 @@ pub struct RatchetSessionManager {
|
||||
}
|
||||
pub fn RatchetSessionManager::create_next_key_block(Self, Bytes, () -> Bytes) -> RatchetBlock? raise RatchetError
|
||||
pub fn RatchetSessionManager::decrypt_incoming(Self, Bytes) -> (Bytes?, Array[RatchetBlock]) raise RatchetError
|
||||
pub fn RatchetSessionManager::drop_session(Self, Bytes) -> Unit
|
||||
pub fn RatchetSessionManager::encrypt_to_peer(Self, Bytes, Array[RatchetBlock], UInt32, () -> Bytes) -> Bytes raise RatchetError
|
||||
pub fn RatchetSessionManager::new(@noise.KeyPair) -> Self
|
||||
|
||||
|
||||
Reference in new issue
Block a user