Merge pull request #431 from imsnif/windows-fix

Fix breaking changes of `sysinfo` crate
This commit is contained in:
cyqsimon
2024-10-08 14:39:17 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
* CI: Use Powershell Compress-Archive to create Windows binary zip #424 - @cyqsimon
* Exit gracefully when there is a broken pipe error #429 - @sigmaSd
* Fix breaking changes of sysinfo crate #431 - @cyqsimon
## [0.23.0] - 2024-08-17

View File

@@ -13,7 +13,7 @@ pub(crate) fn get_open_sockets() -> OpenSockets {
let mut open_sockets = HashMap::new();
let mut sysinfo = System::new_all();
sysinfo.refresh_processes(ProcessesToUpdate::All);
sysinfo.refresh_processes(ProcessesToUpdate::All, true);
let af_flags = AddressFamilyFlags::IPV4 | AddressFamilyFlags::IPV6;
let proto_flags = ProtocolFlags::TCP | ProtocolFlags::UDP;