This commit is contained in:
parent
f854a3b219
commit
459c74bbf0
@ -62,7 +62,7 @@ func (wl CfgTrustlist) Verify() bool {
|
|||||||
func GetSets(cfg config.Config) (res []CfgSet, err error) {
|
func GetSets(cfg config.Config) (res []CfgSet, err error) {
|
||||||
var w = []CfgSet{}
|
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 w, err
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
@ -150,6 +150,7 @@ func (ip *IP) APIFormat() *APIIP {
|
|||||||
Rdns: ip.Rdns.String,
|
Rdns: ip.Rdns.String,
|
||||||
Src: ip.Src,
|
Src: ip.Src,
|
||||||
Hostname: ip.Hostname.String,
|
Hostname: ip.Hostname.String,
|
||||||
|
Date: ip.Updated.Local().String(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (ip *APIIP) APIConvert() *IP {
|
func (ip *APIIP) APIConvert() *IP {
|
||||||
|
Loading…
Reference in New Issue
Block a user