fix: invalid const usage

Signed-off-by: HystericalDragon <HystericalDragons@proton.me>
This commit is contained in:
HystericalDragon 2024-04-05 08:36:04 +08:00
parent 65f5e9caa5
commit 13586df2ba
No known key found for this signature in database
GPG key ID: E205724F8931D99B

View file

@ -52,7 +52,7 @@ func firewallMarkImpl(c *net.UDPConn, fwmark uint32) error {
func fdControlUnixSocketImpl(c *net.UDPConn, path string) error {
return controlUDPConn(c, func(fd int) error {
socketFd, err := unix.Socket(unix.AF_UNIX, unix.SOCK_STREAM, unix.PROT_NONE)
socketFd, err := unix.Socket(unix.AF_UNIX, unix.SOCK_STREAM, 0)
if err != nil {
return fmt.Errorf("failed to create unix socket: %w", err)
}