Skip to content

docs: record MasterDnsVPN integration deferral and design#13

Merged
hawkff merged 2 commits into
mainfrom
docs/masterdnsvpn-deferral
Jun 15, 2026
Merged

docs: record MasterDnsVPN integration deferral and design#13
hawkff merged 2 commits into
mainfrom
docs/masterdnsvpn-deferral

Conversation

@hawkff

@hawkff hawkff commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Docs-only. Records why Phase 12 (MasterDnsVPN) is deferred and captures the full integration design for when work resumes.

Key finding: MasterDnsVPN has no Android VpnService.protect mechanism, so its DNS-carrier sockets would loop inside NekoBox's VPN. Analysis (confirmed via external model review):

  • A sing-box direct/bypass route rule does NOT protect a separate sidecar process's sockets.
  • Android excludeRoute() bypasses by destination but is broad/leaky/static and wrong for this.
  • Per-socket VpnService.protect(fd) is the only reliable approach (as Mieru does via MIERU_PROTECT_PATH).

Recommended sequence documented: (1) ship proxy-mode-only sidecar, (2) upstream a MASTERDNSVPN_PROTECT_PATH hook (Dialer.Control/ListenConfig.Control + SCM_RIGHTS fd passing), (3) reuse NekoBox's Mieru-style protect bridge, (4) enable VPN mode.

No functional app changes.

MasterDnsVPN has no Android VpnService.protect mechanism, so its DNS carrier
sockets would loop inside NekoBox's VPN. A sing-box direct-route bypass does
not protect a separate sidecar process's sockets; per-socket VpnService.protect
is the only reliable approach. Deferred pending an upstream socket-protect hook.

Documents the analysis and the recommended sequence: ship proxy-mode-only
sidecar first, upstream a MASTERDNSVPN_PROTECT_PATH hook (Dialer.Control +
SCM_RIGHTS fd passing), reuse NekoBox's Mieru-style protect bridge, then enable
VPN mode.
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@hawkff, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 7 hours, 22 minutes, and 4 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a4e33f24-b804-4a5c-afe4-c400e89077a7

📥 Commits

Reviewing files that changed from the base of the PR and between d5f66df and e903c58.

📒 Files selected for processing (1)
  • docs/maintenance/masterdnsvpn-deferral.md

Comment @coderabbitai help to get the list of available commands and usage tips.

Resolve the open Go-version question: use a separate setup-go scoped to the
MasterDnsVPN build job rather than raising the repo-wide pin, keeping libcore's
deliberate 1.24.9 toolchain alignment untouched.
@hawkff hawkff merged commit 3ab203f into main Jun 15, 2026
3 checks passed
@hawkff hawkff deleted the docs/masterdnsvpn-deferral branch June 15, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant