mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
Review (goal verification) found that socket_test.go asserted Dialer.Control != nil without build tags, so 'go test ./core/dns/' fails on Windows where markedDialer() deliberately omits Control (SO_MARK is a Linux-only option; markFd is a no-op there). Move the Control assertions to socket_unix_test.go (//go:build !windows); socket_test.go keeps the platform-neutral assertions (Net/UDPSize/timeouts/ Dialer non-nil). Verified: Linux go build + go test all pass, and GOOS=windows go vet compiles the test files cleanly.