mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-04 05:00:24 +08:00
部分中文转换为多语言代号
This commit is contained in:
@@ -308,7 +308,7 @@ func upperWord(word string) string {
|
||||
switch word {
|
||||
case "api", "http", "https", "tcp", "tls", "udp", "ip", "dns", "ns",
|
||||
"waf", "acme", "ssh", "toa", "http2", "http3", "uam", "cc",
|
||||
"db", "isp", "sni", "ui":
|
||||
"db", "isp", "sni", "ui", "soa", "ocsp", "en", "zh":
|
||||
return strings.ToUpper(word)
|
||||
case "ipv6":
|
||||
return "IPv6"
|
||||
@@ -316,6 +316,8 @@ func upperWord(word string) string {
|
||||
return "DDoS"
|
||||
case "webp":
|
||||
return "WebP"
|
||||
case "doh":
|
||||
return "DoH"
|
||||
}
|
||||
|
||||
return strings.ToUpper(word[:1]) + word[1:]
|
||||
|
||||
Reference in New Issue
Block a user