refactor: consolidate hosting/proxy IP classification and migrate IP type filter to network settings modal

This commit is contained in:
baoweise-bot
2026-06-05 18:54:11 +08:00
parent d0fe20f425
commit c155e294a4
2 changed files with 24 additions and 103 deletions
+1 -3
View File
@@ -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"