Fix ASN DB URL to the remote-proxy scheme #8

Merged
benvin merged 1 commits from benvin/fix-asn-db-url into main 2026-07-24 00:05:23 +10:00
+3 -2
View File
@@ -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