mirror of
https://github.com/safing/portbase
synced 2025-04-17 07:59:09 +00:00
Start config validity flag with invalid
This commit is contained in:
parent
874214ea59
commit
7d144dae89
1 changed files with 4 additions and 2 deletions
|
@ -10,9 +10,11 @@ type ValidityFlag struct {
|
|||
}
|
||||
|
||||
// NewValidityFlag returns a flag that signifies if the configuration has been changed.
|
||||
// It always starts out as invalid. Refresh to start with the current value.
|
||||
func NewValidityFlag() *ValidityFlag {
|
||||
vf := &ValidityFlag{}
|
||||
vf.Refresh()
|
||||
vf := &ValidityFlag{
|
||||
flag: abool.New(),
|
||||
}
|
||||
return vf
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue