mirror of
https://github.com/safing/portmaster
synced 2025-09-14 08:49:40 +00:00
Add no-op default interception interface
This enables building for unsupported platforms
This commit is contained in:
parent
0a68b81005
commit
17af628f9a
1 changed files with 18 additions and 0 deletions
18
firewall/interception/interception_default.go
Normal file
18
firewall/interception/interception_default.go
Normal 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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue