mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 23:18:31 -04:00
Implement event-based UDP interface
This commit is contained in:
parent
51788c9557
commit
abd9df6be4
7 changed files with 218 additions and 50 deletions
|
@ -15,7 +15,7 @@ pub enum Event {
|
|||
/// A connection was dropped from the pool and should be closed in all interfaces.
|
||||
ClientConnectionDropped(VirtualPort),
|
||||
/// Data received by the local server that should be sent to the virtual server.
|
||||
LocalData(VirtualPort, Vec<u8>),
|
||||
LocalData(PortForwardConfig, VirtualPort, Vec<u8>),
|
||||
/// Data received by the remote server that should be sent to the local client.
|
||||
RemoteData(VirtualPort, Vec<u8>),
|
||||
/// IP packet received from the WireGuard tunnel that should be passed through the corresponding virtual device.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue