Remove ipFromRequest field

This commit is contained in:
Martin Polden
2016-04-17 16:03:00 +02:00
parent 3134de8260
commit 73fd32f37e
2 changed files with 8 additions and 17 deletions

View File

@ -21,12 +21,7 @@ func (r *mockOracle) IsLookupCityEnabled() bool { return true }
func (r *mockOracle) IsLookupPortEnabled() bool { return true }
func newTestAPI() *API {
return &API{
oracle: &mockOracle{},
ipFromRequest: func(string, *http.Request) (net.IP, error) {
return net.ParseIP("127.0.0.1"), nil
},
}
return &API{oracle: &mockOracle{}}
}
func httpGet(url string, json bool, userAgent string) (string, int, error) {