From 17af628f9a0ecbf67e9d973ee1f6b8f36f7d0f12 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 22 Jul 2020 09:36:53 +0200 Subject: [PATCH] Add no-op default interception interface This enables building for unsupported platforms --- firewall/interception/interception_default.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 firewall/interception/interception_default.go diff --git a/firewall/interception/interception_default.go b/firewall/interception/interception_default.go new file mode 100644 index 00000000..ba8c91d6 --- /dev/null +++ b/firewall/interception/interception_default.go @@ -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 +}