Commit ae6a252
router: fix matching when all domains have wildcards (envoyproxy#4326)
When all domains of all virtual hosts had wildcard characters and there
was a default virtual host, RouteMatcher::findVirtualHost() used to
erroneously ignore the wildcard suffixes.
This patch fixes the issue and introduces a unit test that covers this
case.
Risk level: Medium. The fix is straightforward, but users who rely on
the erroneous behavior might be affected.
Testing: Introduced TestRoutesWithWildcardAndDefaultOnly
Signed-off-by: Tal Nordan tal.nordan@solo.io1 parent aa06142 commit ae6a252
File tree
2 files changed
+26
-1
lines changed- source/common/router
- test/common/router
2 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
854 | | - | |
| 854 | + | |
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
538 | 563 | | |
539 | 564 | | |
540 | 565 | | |
| |||
0 commit comments