Add TCP Trojan support and enhance country detection in external-proxies-sanitizer.js

This commit is contained in:
2026-04-04 14:39:08 +03:00
parent 2b7b7b5410
commit ed4bf7ef60
2 changed files with 18 additions and 2 deletions

View File

@@ -16,4 +16,10 @@ depend() {
need net
use dns
after firewall
}
start_pre() {
# Жестко выдаем права перед каждым запуском.
# Подавляем ошибки, чтобы не ломать старт, если ФС вдруг смонтирована в read-only
setcap 'cap_net_admin,cap_net_bind_service=+ep' /usr/local/bin/mihomo 2>/dev/null || true
}