Files
netbird/sharedsock/sock_nolinux.go
Viktor Liu eb74c507bc Use uint16
2025-07-24 14:31:44 +02:00

15 lines
326 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, mtu uint16) (net.PacketConn, error) {
return nil, fmt.Errorf("not supported OS %s. SharedSocket is only supported on Linux", runtime.GOOS)
}