diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-11-29 18:59:47 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-12-06 10:15:38 +0100 |
| commit | b1ee70805e5730699df9c3ce323abb40523964e5 (patch) | |
| tree | c72aac25d6176da2897a7b984ca7b1d78e7761d1 | |
| parent | c6dfcefb492f6b2c9b897368a2e71a1b04fa7b13 (diff) | |
| download | mullvadvpn-b1ee70805e5730699df9c3ce323abb40523964e5.tar.xz mullvadvpn-b1ee70805e5730699df9c3ce323abb40523964e5.zip | |
Suppress output to stderr.log from pfctl
| -rw-r--r-- | talpid-core/src/firewall/macos.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/talpid-core/src/firewall/macos.rs b/talpid-core/src/firewall/macos.rs index d657c75328..3cb63e485e 100644 --- a/talpid-core/src/firewall/macos.rs +++ b/talpid-core/src/firewall/macos.rs @@ -558,7 +558,9 @@ impl Firewall { } fn is_enabled(&self) -> bool { - let cmd = duct::cmd!("/sbin/pfctl", "-s", "info"); + let cmd = duct::cmd!("/sbin/pfctl", "-s", "info") + .stderr_null() + .stdout_capture(); const EXPECTED_OUTPUT: &'static [u8] = b"Status: Enabled"; match cmd.run() { Ok(output) => output.stdout.as_slice().find(&EXPECTED_OUTPUT).is_some(), |
