Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev 1 committed Jul 29, 2023
1 parent e11a2eb commit d739c0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clash_lib/src/proxy/relay/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ impl Handler {
Arc::new(Self { opts, providers })
}

fn get_proxies(&self) -> Vec<AnyOutboundHandler> {
todo!()
async fn get_proxies(&self) -> Vec<AnyOutboundHandler> {
todo!("get proxies from providers")
}
}

Expand Down Expand Up @@ -61,6 +61,7 @@ impl OutboundHandler for Handler {
) -> io::Result<AnyStream> {
let proxies: Vec<AnyOutboundHandler> = self
.get_proxies()
.await
.into_iter()
.filter(|x| match x.remote_addr() {
Some(_) => true,
Expand Down

0 comments on commit d739c0e

Please sign in to comment.