mirror of https://github.com/mpolden/echoip
Fix build
This commit is contained in:
parent
a6b0a95581
commit
de54d88327
|
@ -20,11 +20,11 @@ func (t *testDb) Country(net.IP) (geo.Country, error) {
|
||||||
return geo.Country{Name: "Elbonia", ISO: "EB"}, nil
|
return geo.Country{Name: "Elbonia", ISO: "EB"}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *testDb) City(net.IP) (database.City, error) {
|
func (t *testDb) City(net.IP) (geo.City, error) {
|
||||||
return database.City{Name: "Bornyasherk"}, nil
|
return geo.City{Name: "Bornyasherk"}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *testDb) IsEmpty() bool { return false }
|
func (t *testDb) IsEmpty() bool { return false }
|
||||||
|
|
||||||
func testServer() *Server {
|
func testServer() *Server {
|
||||||
return &Server{gr: &testDb{}, LookupAddr: lookupAddr, LookupPort: lookupPort}
|
return &Server{gr: &testDb{}, LookupAddr: lookupAddr, LookupPort: lookupPort}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package geo
|
package geo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
|
||||||
"math"
|
"math"
|
||||||
|
"net"
|
||||||
|
|
||||||
geoip2 "github.com/oschwald/geoip2-golang"
|
geoip2 "github.com/oschwald/geoip2-golang"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue