Skip to content

Commit

Permalink
Add no-op default interception interface
Browse files Browse the repository at this point in the history
This enables building for unsupported platforms
  • Loading branch information
dhaavi committed Jul 22, 2020
1 parent 0a68b81 commit 17af628
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions firewall/interception/interception_default.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 17af628

Please sign in to comment.