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 19215a3 commit 0bea3ecCopy full SHA for 0bea3ec
clash-lib/src/app/inbound/network_listener.rs
@@ -124,7 +124,12 @@ fn build_handler(
124
None
125
}
126
127
- InboundOpts::Redir { common_opts, .. } => {
+ #[cfg(feature = "redir")]
128
+ InboundOpts::Redir {
129
+ #[cfg(target_os = "linux")]
130
+ common_opts,
131
+ ..
132
+ } => {
133
#[cfg(target_os = "linux")]
134
{
135
Some(Arc::new(RedirInbound::new(
clash-lib/src/config/internal/listener.rs
@@ -31,6 +31,7 @@ pub enum InboundOpts {
31
common_opts: CommonInboundOpts,
32
udp: bool,
33
},
34
35
#[serde(alias = "redir")]
36
Redir {
37
#[serde(flatten)]
0 commit comments