#1112164 asn: ASN -- issues with -g option

#1112164#5
Date:
2025-08-27 02:22:51 UTC
From:
To:
Dear Maintainer,

The current version of 'asn', as shipped with Debian, contains a bug due to a changed URL in an API.
This specifically targets the '-g' option.
The cause and fix are known and documented here: https://github.com/nitefood/asn/issues/89
Description by the author:
Apparently the RIPE IPmap API URL changed. I'll push the fix shortly, but in the meantime you can try changing this line from:

ipmap_output=$(docurl -m15 -s "https://ipmap.ripe.net/api/v1/locate/all?resources=$ipmap_targets")

to

ipmap_output=$(docurl -m15 -s "https://ipmap-api.ripe.net/v1/locate/all?resources=$ipmap_targets")

and bulk geolocation should be working fine.

Can this fix be added in the package please ?
Thanks !