Skip to content

Commit

Permalink
Update macos.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
布丁狗~ authored Aug 28, 2024
1 parent e1695c7 commit 1f6dbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ fn default_network_service_by_device() -> Result<String> {
.args(["-n", "get", "default"])
.output()?;
let stdout = from_utf8(&output.stdout).or(Err(Error::ParseStr("output".into())))?;
let device = device.split("\n").find_map(|s| {
let device = stdout.split("\n").find_map(|s| {
let line = s.trim();
if line.starts_with("interface:") {
let mut interface = line.split(' ');
Expand Down

0 comments on commit 1f6dbfb

Please sign in to comment.