mirror of
https://github.com/baoweise-bot/aimili-vpngate.git
synced 2026-09-06 08:07:04 +08:00
refactor: optimize tunnel management, add log cleanup throttling, and improve proxy connection reliability
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user