Fix SO_REUSEPORT for macOS #626

This commit is contained in:
Alex X
2023-10-11 11:31:37 +03:00
parent 52e4bf1b35
commit 09f1553e40
2 changed files with 27 additions and 3 deletions
-13
View File
@@ -1,13 +0,0 @@
//go:build darwin || linux
package mdns
import "syscall"
func SetsockoptInt(fd uintptr, level, opt int, value int) (err error) {
return syscall.SetsockoptInt(int(fd), level, opt, value)
}
func SetsockoptIPMreq(fd uintptr, level, opt int, mreq *syscall.IPMreq) (err error) {
return syscall.SetsockoptIPMreq(int(fd), level, opt, mreq)
}