aboutsummaryrefslogtreecommitdiff
path: root/src/https.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-08-27 15:58:47 +0200
committerAlex Auvolat <alex@adnab.me>2023-08-27 15:58:47 +0200
commita3602eac8294fb847912fc084e8943587da7ef56 (patch)
treecd8775cd530779b59e611fd1248c6f0248d1b564 /src/https.rs
parentb5e8d1fcd800330edfc4e8deed5229d172ec1248 (diff)
downloadtricot-a3602eac8294fb847912fc084e8943587da7ef56.tar.gz
tricot-a3602eac8294fb847912fc084e8943587da7ef56.zip
Take into account unhealthy nodes
Diffstat (limited to 'src/https.rs')
-rw-r--r--src/https.rs3
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()