🎨 Clean code Improve network image download to the local

This commit is contained in:
Daniel 2025-05-29 18:12:29 +08:00
parent f535a13372
commit 082e4a9ca9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 12 additions and 43 deletions

View file

@ -100,8 +100,7 @@ func NetAssets2LocalAssets(rootID string, onlyImg bool, originalURL string) (err
}
}
browserClient := util.CreateCustomReqClient().
EnableInsecureSkipVerify() // 添加了自定义TLS指纹, 可以完成对于CDN的资源下载
browserClient := util.NewCustomReqClient() // 自定义了 TLS 指纹,增加下载成功率
forbiddenCount := 0
destNodes := getRemoteAssetsLinkDestsInTree(tree, onlyImg)