Add flag to disable packet interception

This commit is contained in:
Daniel
2020-07-22 09:35:58 +02:00
parent 96b21156e2
commit 0a68b81005
3 changed files with 46 additions and 18 deletions

View File

@@ -1,16 +1,11 @@
package interception
import "github.com/safing/portmaster/network/packet"
// Packets channel for feeding the firewall.
var Packets = make(chan packet.Packet, 1000)
// Start starts the interception.
func Start() error {
// start starts the interception.
func start() error {
return StartNfqueueInterception()
}
// Stop starts the interception.
func Stop() error {
// stop starts the interception.
func stop() error {
return StopNfqueueInterception()
}