mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 17:38:32 -04:00
Use bytes
This commit is contained in:
parent
e62b7d30fe
commit
76b6a6e346
9 changed files with 61 additions and 42 deletions
|
@ -209,7 +209,7 @@ impl WireGuardTunnel {
|
|||
trace_ip_packet("Received IP packet", packet);
|
||||
|
||||
if let Some(proto) = self.route_protocol(packet) {
|
||||
endpoint.send(Event::InboundInternetPacket(proto, packet.into()));
|
||||
endpoint.send(Event::InboundInternetPacket(proto, packet.to_vec().into()));
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue