mirror of https://github.com/hashicorp/consul
Browse Source
Fix a bug that wrongly trims domains when there is an overlap with DC name (#17160) * Fix a bug that wrongly trims domains when there is an overlap with DC name Before this change, when DC name and domain/alt-domain overlap, the domain name incorrectly trimmed from the query. Example: Given: datacenter = dc-test, alt-domain = test.consul. Querying for "test-node.node.dc-test.consul" will faile, because the code was trimming "test.consul" instead of just ".consul" This change, fixes the issue by adding dot (.) before trimming * trimDomain: ensure domain trimmed without modyfing original domains * update changelog --------- Co-authored-by: Alex Simenduev <shamil.si@gmail.com>pull/18188/head
Dhia Ayachi
1 year ago
committed by
GitHub
3 changed files with 43 additions and 1 deletions
@ -0,0 +1,3 @@
|
||||
```release-note:bug |
||||
Fix a bug that wrongly trims domains when there is an overlap with DC name. |
||||
``` |
Loading…
Reference in new issue