Add sharedsock example (#1116)

This commit is contained in:
Misha Bragin
2023-08-31 17:01:32 +02:00
committed by GitHub
parent 00dddb9458
commit d51dc4fd33
7 changed files with 97 additions and 6 deletions

View File

@ -8,7 +8,7 @@ import (
"runtime"
)
// Listen is not supported on other platforms
// 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))
}