Add no-op default interception interface

This enables building for unsupported platforms
This commit is contained in:
Daniel 2020-07-22 09:36:53 +02:00
parent 0a68b81005
commit 17af628f9a

View file

@ -0,0 +1,18 @@
//+build !windows,!linux
package interception
import (
"github.com/safing/portbase/log"
)
// start starts the interception.
func start() error {
log.Info("interception: this platform has no support for packet interception - a lot of functionality will be broken")
return nil
}
// stop starts the interception.
func stop() error {
return nil
}