diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-11-21 05:01:47 -0500 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-11-21 05:10:56 -0500 |
commit | 4ba75a41edb9f80599bdb99352df2ca47faa1f06 (patch) | |
tree | 5c9bcb784d5c92c32eef7b007999c76e083b1718 /pkg/atlas/server.go | |
parent | b3d1c42cf268153831494e8b7b854c621f015497 (diff) | |
download | Atlas-4ba75a41edb9f80599bdb99352df2ca47faa1f06.tar.gz Atlas-4ba75a41edb9f80599bdb99352df2ca47faa1f06.zip |
all: Upgrade github.com/pg9182/ip2x to v0.1.1
This is a larger update since I rewrote ip2x.
Diffstat (limited to 'pkg/atlas/server.go')
-rw-r--r-- | pkg/atlas/server.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/atlas/server.go b/pkg/atlas/server.go index 7b25dad..55f1b5c 100644 --- a/pkg/atlas/server.go +++ b/pkg/atlas/server.go @@ -21,7 +21,7 @@ import ( "github.com/VictoriaMetrics/metrics" "github.com/klauspost/compress/gzip" - "github.com/pg9182/ip2x/ip2location" + "github.com/pg9182/ip2x" "github.com/r2northstar/atlas/db/atlasdb" "github.com/r2northstar/atlas/db/pdatadb" "github.com/r2northstar/atlas/pkg/api/api0" @@ -630,15 +630,15 @@ func configureMainMenuPromos(c *Config) (func(*http.Request) api0.MainMenuPromos } } -func configureIP2Location(c *Config) (*ip2locationMgr, error) { +func configureIP2Location(c *Config) (*ip2xMgr, error) { if c.IP2Location == "" { return nil, nil } - mgr := new(ip2locationMgr) + mgr := new(ip2xMgr) return mgr, mgr.Load(c.IP2Location) } -func configureRegionMap(c *Config) (func(netip.Addr, ip2location.Record) (string, error), error) { +func configureRegionMap(c *Config) (func(netip.Addr, ip2x.Record) (string, error), error) { switch m := c.API0_RegionMap; m { case "", "none": return nil, nil |