mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-21 14:29:10 +00:00
fix from Packet
This commit is contained in:
parent
a72e8698de
commit
d7ff845143
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ impl From<Packet> for Vec<u8> {
|
|||
|
||||
impl From<&Packet> for Vec<u8> {
|
||||
fn from(packet: &Packet) -> Vec<u8> {
|
||||
let mut bytes = vec![0; packet.len()];
|
||||
let mut bytes: Vec<u8> = vec![];
|
||||
packet.write_to_buf(&mut bytes);
|
||||
bytes
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue