diff options
author | Alex Auvolat <alex@adnab.me> | 2023-08-27 15:58:47 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-08-27 15:58:47 +0200 |
commit | a3602eac8294fb847912fc084e8943587da7ef56 (patch) | |
tree | cd8775cd530779b59e611fd1248c6f0248d1b564 /src/https.rs | |
parent | b5e8d1fcd800330edfc4e8deed5229d172ec1248 (diff) | |
download | tricot-a3602eac8294fb847912fc084e8943587da7ef56.tar.gz tricot-a3602eac8294fb847912fc084e8943587da7ef56.zip |
Take into account unhealthy nodes
Diffstat (limited to 'src/https.rs')
-rw-r--r-- | src/https.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/https.rs b/src/https.rs index 49df11a..2353c2d 100644 --- a/src/https.rs +++ b/src/https.rs @@ -233,7 +233,8 @@ async fn select_target_and_proxy( .entries .iter() .filter(|ent| { - ent.host.matches(host) + ent.flags.healthy + && ent.host.matches(host) && ent .path_prefix .as_ref() |