RKNnoVPN/daemon/cmd/privd
Repository files (latest commit first)
Filename Latest commit message Latest commit date
loop-uh 5972c17d38 Fix Go daemon ↔ shell script bridge gap
1. scriptEnv() now passes all 13 env vars required by iptables.sh:
   APP_MODE, APP_UIDS, BYPASS_UIDS, API_PORT, ROUTE_TABLE,
   ROUTE_TABLE_V6, DNS_MODE, PROXY_MODE (plus existing 5)

2. Validate() accepts "whitelist"/"blacklist" app modes
   DefaultConfig() now defaults to "whitelist" mode

3. New ResolvePackageUIDs() resolves Android package names to
   Linux UIDs via /data/system/packages.list with multi-user support

4. Sync Go struct json tags with config.json keys:
   - apps.list (was packages), dns.proxy_dns (was remote_doh),
   - ipv6.mode string (was enable bool), health.threshold,
   - rescue.max_attempts (was max_failures), etc.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 15:51:46 +03:00
..
main.go Fix Go daemon ↔ shell script bridge gap 2026-04-11 15:51:46 +03:00