mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	修改域名匹配的一个Bug,并增大域名的缓存容量,节点状态上传连接数
This commit is contained in:
		@@ -174,10 +174,10 @@ func (this *BaseListener) findNamedServer(name string) (serverConfig *serverconf
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// 只记录N个记录,防止内存耗尽
 | 
						// 只记录N个记录,防止内存耗尽
 | 
				
			||||||
	maxNamedServers := 10240
 | 
						maxNamedServers := 100_0000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// 是否严格匹配域名
 | 
						// 是否严格匹配域名
 | 
				
			||||||
	matchDomainStrictly := group.IsHTTPS() && sharedNodeConfig.GlobalConfig != nil && sharedNodeConfig.GlobalConfig.HTTPAll.MatchDomainStrictly
 | 
						matchDomainStrictly := (group.IsHTTP() || group.IsHTTPS()) && sharedNodeConfig.GlobalConfig != nil && sharedNodeConfig.GlobalConfig.HTTPAll.MatchDomainStrictly
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// 如果只有一个server,则默认为这个
 | 
						// 如果只有一个server,则默认为这个
 | 
				
			||||||
	if countServers == 1 && !matchDomainStrictly {
 | 
						if countServers == 1 && !matchDomainStrictly {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,6 +59,7 @@ func (this *NodeStatusExecutor) update() {
 | 
				
			|||||||
	status.Arch = runtime.GOARCH
 | 
						status.Arch = runtime.GOARCH
 | 
				
			||||||
	status.ConfigVersion = sharedNodeConfig.Version
 | 
						status.ConfigVersion = sharedNodeConfig.Version
 | 
				
			||||||
	status.IsActive = true
 | 
						status.IsActive = true
 | 
				
			||||||
 | 
						status.ConnectionCount = sharedListenerManager.TotalActiveConnections()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	hostname, _ := os.Hostname()
 | 
						hostname, _ := os.Hostname()
 | 
				
			||||||
	status.Hostname = hostname
 | 
						status.Hostname = hostname
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user