mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
24 lines
736 B
Go
24 lines
736 B
Go
package firewall
|
|
|
|
import (
|
|
"github.com/Safing/portbase/config"
|
|
)
|
|
|
|
var (
|
|
permanentVerdicts config.BoolOption
|
|
)
|
|
|
|
func prep() error {
|
|
err := config.Register(&config.Option{
|
|
Name: "Permanent Verdicts",
|
|
Key: "firewall/permanentVerdicts",
|
|
Description: "With permanent verdicts, control of a connection is fully handed back to the OS after the initial decision. This brings a great performance increase, but makes it impossible to change the decision of a link later on.",
|
|
ExpertiseLevel: config.ExpertiseLevelExpert,
|
|
OptType: config.OptTypeBool,
|
|
DefaultValue: true,
|
|
})
|
|
if err != nil {
|
|
return err
|
|
}
|
|
configuredNameServers = config.Concurrent.GetAsBool("firewall/permanentVerdicts", true)
|
|
}
|