mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
syscall.SetsockoptInt takes int (Linux) vs syscall.Handle (Windows) as its first argument. The existing code used int(fd) which fails on Windows where fd is uintptr and syscall.Handle = uintptr. Fix: extract a platform-specific setSocketMark(fd uintptr) helper: - socket_unix.go (!windows) : calls SetsockoptInt(int(fd), ...) - socket_windows.go (windows): no-op (SO_MARK is Linux-only)