mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 18:11:28 +00:00
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>
This commit is contained in:
parent
dc7b7afc06
commit
704545a2ec
|
@ -30,11 +30,11 @@ func NewDomainItem(domains []string, domainSuffixes []string) *DomainItem {
|
||||||
description += " "
|
description += " "
|
||||||
}
|
}
|
||||||
if dsLen == 1 {
|
if dsLen == 1 {
|
||||||
description += "domainSuffix=" + domainSuffixes[0]
|
description += "domain_suffix=" + domainSuffixes[0]
|
||||||
} else if dsLen > 3 {
|
} else if dsLen > 3 {
|
||||||
description += "domainSuffix=[" + strings.Join(domainSuffixes[:3], " ") + "...]"
|
description += "domain_suffix=[" + strings.Join(domainSuffixes[:3], " ") + "...]"
|
||||||
} else {
|
} else {
|
||||||
description += "domainSuffix=[" + strings.Join(domainSuffixes, " ") + "]"
|
description += "domain_suffix=[" + strings.Join(domainSuffixes, " ") + "]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &DomainItem{
|
return &DomainItem{
|
||||||
|
|
Loading…
Reference in a new issue