modified: frida_server/src/server.rs
This commit is contained in:
parent
7855720b51
commit
26aa3c994c
@ -145,7 +145,8 @@ pub async fn server_mode(server_config: ServerConfiguration, s_interface: Option
|
||||
let tun_reader_task = tokio::spawn(async move {
|
||||
let mut buf = vec![0u8; 4096];
|
||||
loop {
|
||||
if let Ok(n) = dev_reader.read(&mut buf).await {
|
||||
match dev_reader.read(&mut buf).await {
|
||||
Ok(n) => {
|
||||
if n <= 19 { continue; }
|
||||
|
||||
let ip = IpAddr::V4(Ipv4Addr::new(buf[16], buf[17], buf[18], buf[19]));
|
||||
@ -167,6 +168,8 @@ pub async fn server_mode(server_config: ServerConfiguration, s_interface: Option
|
||||
//mp.values().for_each(| peer | { sock_snd.send_to(&buf[..n], peer.addr); });
|
||||
}
|
||||
drop(mp);
|
||||
},
|
||||
Err(e) => error!("Error: {:?}", e)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user