Files
netbird/sharedsock/sock_nolinux.go
aliamerj ba7793ae7b Revert "Merge branch 'main' into feature/remote-debug"
This reverts commit 6d6333058c, reversing
changes made to 446aded1f7.
2025-10-06 12:24:48 +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)
}