Skip to content

Commit b43aeab

Browse files
authored
chore: bump system-configuration to 0.7 (#256)
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
1 parent d841f5d commit b43aeab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pretty_env_logger = "0.5"
5050
pnet_datalink = "0.35.0"
5151

5252
[target.'cfg(target_os = "macos")'.dependencies]
53-
system-configuration = { version = ">=0.5, <0.7", optional = true }
53+
system-configuration = { version = "0.7", optional = true }
5454

5555
[target.'cfg(windows)'.dependencies]
5656
windows-registry = { version = ">=0.3, <0.7", optional = true }

src/client/proxy/matcher.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,11 @@ mod mac {
586586
};
587587

588588
pub(super) fn with_system(builder: &mut super::Builder) {
589-
let store = SCDynamicStoreBuilder::new("").build();
589+
let store = if let Some(store) = SCDynamicStoreBuilder::new("hyper-util").build() {
590+
store
591+
} else {
592+
return;
593+
};
590594

591595
let proxies_map = if let Some(proxies_map) = store.get_proxies() {
592596
proxies_map

0 commit comments

Comments
 (0)