mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	接收HTTP请求时去除域名后面的点符号
This commit is contained in:
		@@ -117,7 +117,7 @@ func (this *HTTPListener) Reload(group *serverconfigs.ServerAddressGroup) {
 | 
			
		||||
// ServerHTTP 处理HTTP请求
 | 
			
		||||
func (this *HTTPListener) ServeHTTP(rawWriter http.ResponseWriter, rawReq *http.Request) {
 | 
			
		||||
	// 域名
 | 
			
		||||
	var reqHost = rawReq.Host
 | 
			
		||||
	var reqHost = strings.TrimRight(rawReq.Host, ".")
 | 
			
		||||
 | 
			
		||||
	// TLS域名
 | 
			
		||||
	if this.isIP(reqHost) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user