refactor: optimize tunnel management, add log cleanup throttling, and improve proxy connection reliability

This commit is contained in:
baoweise-bot
2026-05-29 23:41:05 +08:00
parent 88d241f595
commit 531beca616
3 changed files with 94 additions and 74 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ def get_physical_interface() -> str | None:
except (ValueError, IndexError):
continue
if routes:
routes.sort(key=lambda x: x[2], reverse=True)
routes.sort(key=lambda x: x[2])
for gw, dev, metric in routes:
if not dev.startswith(("tun", "tap", "wg", "ppp")):
return dev