mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-26 00:40:24 +08:00
自动转换访问域名中的大写字母
This commit is contained in:
@@ -121,7 +121,7 @@ func (this *HTTPListener) ServeHTTP(rawWriter http.ResponseWriter, rawReq *http.
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 域名
|
// 域名
|
||||||
var reqHost = strings.TrimRight(rawReq.Host, ".")
|
var reqHost = strings.ToLower(strings.TrimRight(rawReq.Host, "."))
|
||||||
|
|
||||||
// TLS域名
|
// TLS域名
|
||||||
if this.isIP(reqHost) {
|
if this.isIP(reqHost) {
|
||||||
|
|||||||
Reference in New Issue
Block a user