MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / handleChineseDomain

Function handleChineseDomain

agent/app/service/website_utils.go:43–48  ·  view source on GitHub ↗
(domain string)

Source from the content-addressed store, hash-verified

41)
42
43func handleChineseDomain(domain string) (string, error) {
44 if common.ContainsChinese(domain) {
45 return common.PunycodeEncode(domain)
46 }
47 return domain, nil
48}
49
50func isHTTPSProxyPass(proxyPass string) bool {
51 return strings.HasPrefix(strings.ToLower(strings.TrimSpace(proxyPass)), "https://")

Callers 1

getWebsiteDomainsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected