Skip to content

fix: panic when parsing proxies with remote dns - #276

Merged
beck-8 merged 3 commits into
masterfrom
beck-8/panic-处理
Sep 14, 2026

Hidden character warning

The head ref may contain hidden characters: "beck-8/panic-\u5904\u7406"
Merged

beck-8 merged 3 commits into
masterfrom
beck-8/panic-处理

Conversation

@beck-8

@beck-8 beck-8 commented Sep 14, 2026

Copy link
Copy Markdown
Owner

No description provided.

beck-8 and others added 2 commits September 14, 2026 15:42
mihomo's dns.ParseNameServer is a function variable assigned only in
mihomo/config's init(). subs-check didn't import that package, so
wireguard/masque/openvpn/zerotier proxies with remote-dns-resolve and dns
crashed in adapter.ParseProxy with a nil pointer dereference.

Import mihomo/config for its init(), and parse the custom DNS config with
mihomo's parser instead of the hand-written one, which also fixes bare
IPv6 nameservers being parsed without a port.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
TestUploadToS3 needs a local MinIO, so it failed `go test ./...` anywhere
else. Gate it behind the minio_it build tag, like the substore_it
integration tests, so the default test run can pass in CI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@beck-8 beck-8 changed the title Beck 8/panic 处理 fix: panic when parsing proxies with remote dns Sep 14, 2026
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@beck-8
beck-8 merged commit 2459171 into master Sep 14, 2026
1 check passed
@beck-8
beck-8 deleted the beck-8/panic-处理 branch September 14, 2026 07:47
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