From 369352a8ab66db234b7b63606e7fe24c407fe040 Mon Sep 17 00:00:00 2001 From: kkocdko <31189892+kkocdko@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:15:28 +0800 Subject: [PATCH] Fix rule description header of domain_suffix I read other rule_item_xxx.go files, they are all snake case. This description is showed on dashboard like yacd. Signed-off-by: kkocdko <31189892+kkocdko@users.noreply.github.com> --- route/rule_item_domain.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/route/rule_item_domain.go b/route/rule_item_domain.go index d2a11181..36839a55 100644 --- a/route/rule_item_domain.go +++ b/route/rule_item_domain.go @@ -30,11 +30,11 @@ func NewDomainItem(domains []string, domainSuffixes []string) *DomainItem { description += " " } if dsLen == 1 { - description += "domainSuffix=" + domainSuffixes[0] + description += "domain_suffix=" + domainSuffixes[0] } else if dsLen > 3 { - description += "domainSuffix=[" + strings.Join(domainSuffixes[:3], " ") + "...]" + description += "domain_suffix=[" + strings.Join(domainSuffixes[:3], " ") + "...]" } else { - description += "domainSuffix=[" + strings.Join(domainSuffixes, " ") + "]" + description += "domain_suffix=[" + strings.Join(domainSuffixes, " ") + "]" } } return &DomainItem{