From c155e294a4569a218eb54dcf10fa0c8440d57fd8 Mon Sep 17 00:00:00 2001 From: baoweise-bot Date: Fri, 5 Jun 2026 18:54:11 +0800 Subject: [PATCH] refactor: consolidate hosting/proxy IP classification and migrate IP type filter to network settings modal --- vpn_utils.py | 4 +- vpngate_manager.py | 123 +++++++++------------------------------------ 2 files changed, 24 insertions(+), 103 deletions(-) diff --git a/vpn_utils.py b/vpn_utils.py index c736f68..57f8085 100644 --- a/vpn_utils.py +++ b/vpn_utils.py @@ -399,9 +399,7 @@ def enrich_ip_info(nodes: list[dict[str, Any]]) -> None: ip_type = "residential" if item.get("mobile"): ip_type = "mobile" - elif item.get("proxy"): - ip_type = "proxy" - elif item.get("hosting"): + elif item.get("hosting") or item.get("proxy"): ip_type = "hosting" quality = "normal" diff --git a/vpngate_manager.py b/vpngate_manager.py index 27473ca..4d66556 100644 --- a/vpngate_manager.py +++ b/vpngate_manager.py @@ -2565,20 +2565,7 @@ INDEX_HTML = r"""
-
- - -
-
- - -
+ +
+ + +
+
ℹ️ 自动配置:全自动测试并选择最佳IP。在使用过程中,如果当前连接节点没有失效,将不再更换IP;如果当前节点失效,系统将立刻秒级自动漂移到其他最快的可用节点。
@@ -2843,7 +2839,7 @@ INDEX_HTML = r"""

- 网关运行状态与自检 + 网关设置与自检