Implement control channel routing for wraith-* reserved destinations (ADR-018)
- Add control_channel.rs with WRAITH_CONTROL_DESTINATION, WRAITH_PREFIX constants - Add ControlChannelHandler trait and ControlChannelRouter for routing logic - Add DuplexStream supertrait for Box<dyn> compatibility - Server handler rejects wraith-* destinations when no handler configured - Add ForwardError type to fix pre-existing compilation error - Unit tests: reserved detection, non-reserved pass-through, prefix matching
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
pub mod control_channel;
|
||||
pub mod handler;
|
||||
|
||||
pub use control_channel::{
|
||||
ControlChannelHandler, ControlChannelRouter, DuplexStream, WRAITH_CONTROL_DESTINATION,
|
||||
WRAITH_PREFIX, is_reserved_destination,
|
||||
};
|
||||
pub use handler::{ProxyConfig, ProxyMode, ServerHandler};
|
||||
Reference in New Issue
Block a user