mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 17:38:32 -04:00
Refactor TCP virtual interface code out of main. Removed unused server socket buffer.
This commit is contained in:
parent
070c0f5162
commit
c2d0b9719a
6 changed files with 322 additions and 255 deletions
|
@ -18,7 +18,7 @@ const DISPATCH_CAPACITY: usize = 1_000;
|
|||
/// to be sent to and received from a remote UDP endpoint.
|
||||
/// This tunnel supports at most 1 peer IP at a time, but supports simultaneous ports.
|
||||
pub struct WireGuardTunnel {
|
||||
source_peer_ip: IpAddr,
|
||||
pub(crate) source_peer_ip: IpAddr,
|
||||
/// `boringtun` peer/tunnel implementation, used for crypto & WG protocol.
|
||||
peer: Box<Tunn>,
|
||||
/// The UDP socket for the public WireGuard endpoint to connect to.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue