mirror of
https://github.com/arampoire/onetun.git
synced 2025-12-01 03:40:23 -05:00
Checkpoint
This commit is contained in:
parent
fb50ee7113
commit
282d4f48eb
4 changed files with 81 additions and 7 deletions
|
|
@ -75,7 +75,7 @@ impl VirtualInterfacePoll for TcpVirtualInterface {
|
|||
// Consumer for IP packets to send through the virtual interface
|
||||
// Initialize the interface
|
||||
let device =
|
||||
VirtualIpDevice::new(VirtualPort(self.virtual_port, PortProtocol::Tcp), self.wg)
|
||||
VirtualIpDevice::new_direct(VirtualPort(self.virtual_port, PortProtocol::Tcp), self.wg)
|
||||
.with_context(|| "Failed to initialize TCP VirtualIpDevice")?;
|
||||
let mut virtual_interface = InterfaceBuilder::new(device)
|
||||
.ip_addrs([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue