We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a41db commit 2ddec19Copy full SHA for 2ddec19
clash-lib/src/app/router/rules/process.rs
@@ -1,5 +1,4 @@
1
use super::RuleMatcher;
2
-use crate::session::Network;
3
4
pub struct Process {
5
pub name: String,
@@ -18,6 +17,7 @@ impl RuleMatcher for Process {
18
17
fn apply(&self, sess: &crate::session::Session) -> bool {
19
#[cfg(any(target_os = "linux", target_os = "macos"))]
20
{
+ use crate::session::Network;
21
use tracing::debug;
22
23
sock2proc::find_process_name(
@@ -41,7 +41,7 @@ impl RuleMatcher for Process {
41
42
use tracing::info;
43
44
- info!("PROCESS-NAME not supported on Windows yet");
+ info!("PROCESS-NAME not supported on Windows yet", sess = &sess);
45
false
46
}
47
0 commit comments