mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
25 lines
643 B
Go
25 lines
643 B
Go
package core
|
|
|
|
import (
|
|
"github.com/safing/portbase/config"
|
|
)
|
|
|
|
var (
|
|
devMode config.BoolOption
|
|
)
|
|
|
|
func registerConfig() error {
|
|
err := config.Register(&config.Option{
|
|
Name: "Development Mode",
|
|
Key: "core/devMode",
|
|
Description: "In Development Mode security restrictions are lifted/softened to enable easier access to Portmaster for debugging and testing purposes. This is potentially very insecure, only activate if you know what you are doing.",
|
|
ExpertiseLevel: config.ExpertiseLevelDeveloper,
|
|
OptType: config.OptTypeBool,
|
|
DefaultValue: true,
|
|
})
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|