feat(ipinfo): support GeoIP (#26)

Co-authored-by: E99p1ant <[email protected]>
This commit is contained in:
Li4n0
2021-06-12 22:04:45 +08:00
committed by GitHub
co-authored by E99p1ant
parent d1013c2416
commit dc43b6973a
20 changed files with 284 additions and 77 deletions
+2
View File
@@ -6,6 +6,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/li4n0/revsuit/internal/database"
"github.com/li4n0/revsuit/internal/file"
"github.com/li4n0/revsuit/internal/ipinfo"
"github.com/li4n0/revsuit/internal/notice"
"github.com/li4n0/revsuit/internal/record"
"github.com/li4n0/revsuit/pkg/dns"
@@ -178,6 +179,7 @@ func New(c *Config) *Revsuit {
initDatabase(c.Database)
logLevel := initLog(c.LogLevel)
ipinfo.Init(c.IpLocationDatabase)
initNotice(c.Notice)
s := &Revsuit{