mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-22 11:54:06 +02:00
chore(pmtud): remove calls to syscall in favor of unix and windows
- syscall is deprecated and is not kept up-to-date - each OS is inherently different hence the syscall being deprecated
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
package ip
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
func SetIPv4HeaderIncluded(handle syscall.Handle) error {
|
||||
func SetIPv4HeaderIncluded(handle windows.Handle) error {
|
||||
const ipHdrIncluded = windows.IP_HDRINCL
|
||||
return syscall.SetsockoptInt(handle, syscall.IPPROTO_IP, ipHdrIncluded, 1)
|
||||
return windows.SetsockoptInt(handle, windows.IPPROTO_IP, ipHdrIncluded, 1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user