Skip to content

Commit

Permalink
Update CDN Providers
Browse files Browse the repository at this point in the history
  • Loading branch information
ImAyrix committed Mar 31, 2023
1 parent 57aa337 commit 563d833
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (

var wg sync.WaitGroup

const VERSION = "1.0.13"
const VERSION = "1.0.14"

func main() {
var allRange []*net.IPNet
Expand Down Expand Up @@ -146,7 +146,8 @@ var CDNS = []CDN{
{"https://api.bgpview.io/asn/AS30148/prefixes", sendRequest},
{"https://api.bgpview.io/asn/AS136165/prefixes", sendRequest},
{"https://api.bgpview.io/asn/AS16625/prefixes", sendRequest},
{"https://api.bgpview.io/asn/AS16625/prefixes", sendRequest},
{"https://api.bgpview.io/asn/AS20940/prefixes", sendRequest},
{"https://ayrix.info/cut-cdn-data/", sendRequest},
{"https://cdn.nuclei.sh", sendRequest},
{"https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519", readFileUrl},
{"https://download.microsoft.com/download/0/1/8/018E208D-54F8-44CD-AA26-CD7BC9524A8C/PublicIPs_20200824.xml", readFileUrl},
Expand All @@ -159,7 +160,7 @@ func loadAllCDN() []*net.IPNet {
var wg sync.WaitGroup
var allRanges []*net.IPNet

cidrChan := make(chan []*net.IPNet, 23)
cidrChan := make(chan []*net.IPNet, len(CDNS)+1)
wg.Add(len(CDNS))

for _, cdn := range CDNS {
Expand Down

0 comments on commit 563d833

Please sign in to comment.