mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
5f903d1fbf
- syscall is deprecated and is not kept up-to-date - each OS is inherently different hence the syscall being deprecated
11 lines
230 B
Go
11 lines
230 B
Go
package ip
|
|
|
|
import (
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
func SetIPv4HeaderIncluded(handle windows.Handle) error {
|
|
const ipHdrIncluded = windows.IP_HDRINCL
|
|
return windows.SetsockoptInt(handle, windows.IPPROTO_IP, ipHdrIncluded, 1)
|
|
}
|