zapret-kvn/runtime/amnezia/bind_other.go
loop-uh d5a4715771
Some checks failed
Windows project source guards / test (push) Has been cancelled
feat: use official Amnezia transport and organize runtime modules
2026-09-06 00:14:08 +03:00

24 lines
557 B
Go

//go:build !windows
package main
import (
"fmt"
"syscall"
)
func physicalSocketControl(index uint32) func(string, string, syscall.RawConn) error {
return func(string, string, syscall.RawConn) error {
if index != 0 {
return fmt.Errorf("Windows interface binding requested on another platform")
}
return nil
}
}
func protectBind(bind *protectedBind) error {
if bind.index != 0 {
return fmt.Errorf("Windows interface binding requested on another platform")
}
return nil // Host integration tests run without an OS TUN or route changes.
}