The only place I can see a flaw is right at this spot...
here we are deleting the CDN whitelist entries out of the IPset, before downloading the new one; however, this line of code is not my brain child. This is the only place I could see where the entry is deleted. before a curl to download the ASN is made. Thus explaining why the users skynet blocked the IP address for
asn.ipinfo.app in their geographical region.
@dave14305
what about this line as well?
If you notice we are deleting whitelist entries after having already loaded some, including the CDN.
Code:
Whitelist_Extra
Whitelist_CDN
Whitelist_VPN
sed '\~add Skynet-Whitelist ~!d;\~nvram: ~!d;s~ comment.*~~;s~add~del~g' "$skynetipset" | ipset restore -!
Whitelist_Shared