misc fixes
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Paul 2022-06-04 17:45:37 +02:00
parent f854a3b219
commit 459c74bbf0
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,7 @@ func (wl CfgTrustlist) Verify() bool {
func GetSets(cfg config.Config) (res []CfgSet, err error) {
var w = []CfgSet{}
if err := cfg.Db.Find(&w); err == nil {
if err := cfg.Db.Where("enabled is true").Find(&w); err == nil {
return w, err
}
return

View File

@ -150,6 +150,7 @@ func (ip *IP) APIFormat() *APIIP {
Rdns: ip.Rdns.String,
Src: ip.Src,
Hostname: ip.Hostname.String,
Date: ip.Updated.Local().String(),
}
}
func (ip *APIIP) APIConvert() *IP {