From 7cca8ad4b07c3994294621fc87c138827c934e4f Mon Sep 17 00:00:00 2001 From: Soha Jin Date: Tue, 11 Jul 2023 20:27:53 +0800 Subject: [PATCH] [Fix] test external_relay: count should always be the last rule, as it have no matching condition --- test/functional/configs/merged-local.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/functional/configs/merged-local.conf b/test/functional/configs/merged-local.conf index 1be38d128..2cf05bf13 100644 --- a/test/functional/configs/merged-local.conf +++ b/test/functional/configs/merged-local.conf @@ -41,6 +41,9 @@ external_relay { } EXTERNAL_RELAY_COUNT { count = 4; + # `count` strategy always pops Received headers out, this will break other rules. + # So it should always be the last rule. + priority = 30; strategy = "count"; } EXTERNAL_RELAY_HOSTNAME_MAP { -- 2.39.5