diff options
Diffstat (limited to 'src/proxy_config.rs')
-rw-r--r-- | src/proxy_config.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/proxy_config.rs b/src/proxy_config.rs index a64e5aa..4add98c 100644 --- a/src/proxy_config.rs +++ b/src/proxy_config.rs @@ -194,6 +194,14 @@ fn parse_consul_catalog( }; let addr = SocketAddr::new(ip_addr, svc.port); + let (same_node, same_site) = if svc.tags.contains(&"tricot-global-lb".into()) { + (false, false) + } else if svc.tags.contains(&"tricot-site-lb".into()) { + (false, same_site) + } else { + (same_node, same_site) + }; + let mut add_headers = vec![]; for tag in svc.tags.iter() { if let Some(pair) = parse_tricot_add_header_tag(tag) { |