netbird/sharedsock/sock_nolinux.go

15 lines
314 B
Go
Raw Normal View History

2023-05-05 10:55:23 +02:00
//go:build !linux || android
package sharedsock
import (
"fmt"
"net"
"runtime"
)
2023-08-31 17:01:32 +02:00
// Listen is not supported on other platforms then Linux
func Listen(port int, filter BPFFilter) (net.PacketConn, error) {
2024-08-14 12:30:10 +02:00
return nil, fmt.Errorf("not supported OS %s. SharedSocket is only supported on Linux", runtime.GOOS)
}