Skip to content

Commit

Permalink
修改tun占用内存的大小
Browse files Browse the repository at this point in the history
  • Loading branch information
vnt-dev committed Jun 15, 2024
1 parent 51315ef commit 073fa6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnt/tun/src/windows/tun/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl Device {
));
}
// 开启session
let session = win_tun.WintunStartSession(adapter, MAX_RING_CAPACITY);
let session = win_tun.WintunStartSession(adapter, 128 * 1024);
if session.is_null() {
log::error!("session.is_null {:?}", io::Error::last_os_error());
return Err(io::Error::new(
Expand Down

0 comments on commit 073fa6a

Please sign in to comment.