1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00

better command

This commit is contained in:
OniriCorpe 2024-01-01 07:44:54 +01:00
parent 389b903c66
commit 6477aab4b3

View file

@ -93,7 +93,7 @@ It should look like the list in the previous section.
You can use the following command to automatically give you a ready-to-use list:
```bash
curl -sL ip.guide/AS"$(curl -sL ip.guide | jq -s --indent 1 ".[].network.autonomous_system.asn")" | jq -s --indent 1 ".[].routes" | sed "/\[/d;/{/d;/]/d;/}/d;s/ \"//;s/\",//;s/\"//"
curl -sL ip.guide/AS"$(curl -sL ip.guide | jq -s --indent 1 ".[].network.autonomous_system.asn")" | jq -s -j --indent 1 ".[].routes" | sed "/v4/d;/v6/d;/\],/d" | tr -d " [{]\",}"
```
**Note:** maybe you'll need to do this step multiple times, as some Internet provider have multiple ASN numbers. So if one day your AdGuard Home refuses to reply, it might be because of this.