mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 17:38:32 -04:00
WIP on UDP and multi-port-forward support
This commit is contained in:
parent
c4a5e634ab
commit
cb09bb8857
5 changed files with 197 additions and 28 deletions
|
@ -24,7 +24,7 @@ pub struct WireGuardTunnel {
|
|||
/// The UDP socket for the public WireGuard endpoint to connect to.
|
||||
udp: UdpSocket,
|
||||
/// The address of the public WireGuard endpoint (UDP).
|
||||
endpoint: SocketAddr,
|
||||
pub(crate) endpoint: SocketAddr,
|
||||
/// Maps virtual ports to the corresponding IP packet dispatcher.
|
||||
virtual_port_ip_tx: lockfree::map::Map<u16, tokio::sync::mpsc::Sender<Vec<u8>>>,
|
||||
/// IP packet dispatcher for unroutable packets. `None` if not initialized.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue