diff --git a/code/default/version.txt b/code/default/version.txt index d41f08f1f3..9af9a6a81c 100644 --- a/code/default/version.txt +++ b/code/default/version.txt @@ -1 +1 @@ -5.5.1 \ No newline at end of file +5.5.2 \ No newline at end of file diff --git a/code/default/x_tunnel/local/cloudflare_front/ip_manager.py b/code/default/x_tunnel/local/cloudflare_front/ip_manager.py index 40b1724c02..388792d0b4 100644 --- a/code/default/x_tunnel/local/cloudflare_front/ip_manager.py +++ b/code/default/x_tunnel/local/cloudflare_front/ip_manager.py @@ -66,6 +66,9 @@ def save_domains(self, domains): def get_ip_sni_host(self): now = time.time() for top_domain, info in self.domain_map.items(): + if info["links"] < 0: + info["links"] = 0 + if info["links"] >= self.config.max_connection_per_domain: continue diff --git a/code/default/x_tunnel/local/tls_relay_front/ip_manager.py b/code/default/x_tunnel/local/tls_relay_front/ip_manager.py index 3413d5c5ae..7041dccd83 100644 --- a/code/default/x_tunnel/local/tls_relay_front/ip_manager.py +++ b/code/default/x_tunnel/local/tls_relay_front/ip_manager.py @@ -36,7 +36,7 @@ def get_ip_sni_host(self): for ip in ips: info = self._get_ip_info(ip) if info["links"] < 0: - self.logger.error("ip %s link:%d", ip, info["links"]) + # self.logger.error("ip %s link:%d", ip, info["links"]) info["links"] = 0 if info["links"] >= self.config.max_links_per_ip: