netbird/sharedsock/sock_nolinux.go
2024-08-14 13:30:10 +03:00

15 lines
314 B
Go

//go:build !linux || android
package sharedsock
import (
"fmt"
"net"
"runtime"
)
// Listen is not supported on other platforms then Linux
func Listen(port int, filter BPFFilter) (net.PacketConn, error) {
return nil, fmt.Errorf("not supported OS %s. SharedSocket is only supported on Linux", runtime.GOOS)
}