Fix ASN DB URL to the remote-proxy scheme #8
@@ -15,9 +15,10 @@ import (
|
||||
)
|
||||
|
||||
// DefaultIPLocateDBURL is the iplocate ip-to-asn CSV database, proxied through
|
||||
// the artifactapi github remote. The files are Git-LFS, so the /raw/ path
|
||||
// the artifactapi github remote. Remote proxies are served at
|
||||
// /api/v1/remote/<name>/<path>. The files are Git-LFS, so the /raw/ path
|
||||
// redirects to the LFS media host — artifactapi follows that redirect.
|
||||
const DefaultIPLocateDBURL = "https://artifactapi.k8s.syd1.au.unkin.net/api/v2/remotes/github/files/iplocate/ip-address-databases/raw/main/ip-to-asn/ip-to-asn.csv.zip"
|
||||
const DefaultIPLocateDBURL = "https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/iplocate/ip-address-databases/raw/main/ip-to-asn/ip-to-asn.csv.zip"
|
||||
|
||||
// IPLocateDB expands ASNs by reading iplocate's ip-to-asn CSV (CIDR,asn,...). It
|
||||
// downloads and indexes the whole database once, then serves every ASN group
|
||||
|
||||
Reference in New Issue
Block a user