kdhcp/server/ifi.go

19 lines
334 B
Go
Raw Permalink Normal View History

2023-05-02 23:46:04 +00:00
//go:build !linux
2023-05-02 16:27:27 +00:00
package server
import (
"errors"
"fmt"
2023-05-02 16:27:27 +00:00
"net"
"runtime"
2023-05-02 16:27:27 +00:00
)
func init() {
panic(fmt.Sprintf("%s is not a supported operating system", runtime.GOOS))
}
2023-05-02 16:27:27 +00:00
func BindInterface(ip net.IP, port int, dev string) (net.PacketConn, error) {
return nil, errors.New("server: %s does not support binding to an interface")
2023-05-02 16:27:27 +00:00
}