mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-25 08:09:30 +01:00
15 lines
327 B
Go
15 lines
327 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(fmt.Sprintf("Not supported OS %s. SharedSocket is only supported on Linux", runtime.GOOS))
|
|
}
|