2023-05-02 23:40:12 +00:00
|
|
|
// +build: !linux
|
|
|
|
|
2023-05-02 16:27:27 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2023-05-02 23:40:12 +00:00
|
|
|
"errors"
|
|
|
|
"fmt"
|
2023-05-02 16:27:27 +00:00
|
|
|
"net"
|
2023-05-02 23:40:12 +00:00
|
|
|
"runtime"
|
2023-05-02 16:27:27 +00:00
|
|
|
)
|
|
|
|
|
2023-05-02 23:40:12 +00:00
|
|
|
func init() {
|
|
|
|
panic(fmt.Sprintf("%s is not a supported operating system", runtime.GOOS))
|
|
|
|
}
|
2023-05-02 16:27:27 +00:00
|
|
|
|
2023-05-02 23:40:12 +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
|
|
|
}
|