mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
refactor(cmd/check-ip): remove redundant -geoip-key-file flag, trim trailing / from -geoip-url
This commit is contained in:
parent
f81ff7607c
commit
ee3c277a00
@ -266,7 +266,7 @@ func main() {
|
||||
authHeader := http.Header{"Authorization": []string{cfg.GeoIPBasicAuth}}
|
||||
downloadBase := geoip.DownloadBase
|
||||
if cfg.GeoIPURL != "" {
|
||||
downloadBase = cfg.GeoIPURL
|
||||
downloadBase = strings.TrimRight(cfg.GeoIPURL, "/")
|
||||
}
|
||||
cityCacher := httpcache.New(
|
||||
downloadBase+"/GeoLite2-City/download?suffix=tar.gz",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user