Fix darwin build
This commit is contained in:
@@ -4,6 +4,7 @@ package interception
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/safing/portbase/log"
|
"github.com/safing/portbase/log"
|
||||||
|
"github.com/safing/portmaster/network"
|
||||||
"github.com/safing/portmaster/network/packet"
|
"github.com/safing/portmaster/network/packet"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -22,3 +23,8 @@ func stop() error {
|
|||||||
func ResetVerdictOfAllConnections() error {
|
func ResetVerdictOfAllConnections() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UpdateVerdictOfConnection updates the verdict of the given connection in the OS integration.
|
||||||
|
func UpdateVerdictOfConnection(conn *network.Connection) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ func ResetVerdictOfAllConnections() error {
|
|||||||
return nfq.DeleteAllMarkedConnection()
|
return nfq.DeleteAllMarkedConnection()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateVerdictOfConnection deletes the verdict of specific connection so in can be initialized again with the next packet.
|
// UpdateVerdictOfConnection deletes the verdict of the given connection so it can be initialized again with the next packet.
|
||||||
func UpdateVerdictOfConnection(conn *network.Connection) error {
|
func UpdateVerdictOfConnection(conn *network.Connection) error {
|
||||||
return nfq.DeleteMarkedConnection(conn)
|
return nfq.DeleteMarkedConnection(conn)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ func ResetVerdictOfAllConnections() error {
|
|||||||
return windowskext.ClearCache()
|
return windowskext.ClearCache()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateVerdictOfConnection updates the verdict of specific connection in the kernel extension.
|
// UpdateVerdictOfConnection updates the verdict of the given connection in the kernel extension.
|
||||||
func UpdateVerdictOfConnection(conn *network.Connection) error {
|
func UpdateVerdictOfConnection(conn *network.Connection) error {
|
||||||
return windowskext.UpdateVerdict(conn)
|
return windowskext.UpdateVerdict(conn)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user