Work on portmaster restructuring
This commit is contained in:
31
network/unknown.go
Normal file
31
network/unknown.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package network
|
||||
|
||||
import "github.com/Safing/portmaster/process"
|
||||
|
||||
// Static reasons
|
||||
const (
|
||||
ReasonUnknownProcess = "unknown connection owner: process could not be found"
|
||||
)
|
||||
|
||||
var (
|
||||
UnknownDirectConnection = &Connection{
|
||||
Domain: "D",
|
||||
Direction: Outbound,
|
||||
Verdict: DROP,
|
||||
Reason: ReasonUnknownProcess,
|
||||
process: process.UnknownProcess,
|
||||
}
|
||||
|
||||
UnknownIncomingConnection = &Connection{
|
||||
Domain: "I",
|
||||
Direction: Inbound,
|
||||
Verdict: DROP,
|
||||
Reason: ReasonUnknownProcess,
|
||||
process: process.UnknownProcess,
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
UnknownDirectConnection.Save()
|
||||
UnknownIncomingConnection.Save()
|
||||
}
|
||||
Reference in New Issue
Block a user