updated ipbl
Some checks failed
continuous-integration/drone Build is failing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paul 2022-01-02 18:19:56 +01:00
parent 5d2cd581c2
commit 1765b94790
3 changed files with 2 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
*.ini
*.swp
/test
version.go

View File

@ -1,3 +0,0 @@
package main
var version = "1.0.0"

View File

@ -15,7 +15,7 @@ import (
// GetIPs ...
func GetIPs(ctx *context.Context, config *config.Config, limit int) (apimailboxes []*api.IP, err error) {
var ips []IP
err = config.Db.Limit(limit).Find(&ips)
err = config.Db.Limit(limit).Desc("created").Find(&ips)
for _, ml := range ips {
apimailboxes = append(apimailboxes, ml.APIFormat())
}