From c990cf86e540ce787d90439f15720ef0b136de65 Mon Sep 17 00:00:00 2001 From: purocean Date: Thu, 13 Jan 2022 22:34:06 +0800 Subject: [PATCH] upd: use hub.fastgit.org instead of github.com.cnpmjs.org avoid 429 --- src/main/updater.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/updater.ts b/src/main/updater.ts index 275bb1bf..b8a6268f 100644 --- a/src/main/updater.ts +++ b/src/main/updater.ts @@ -27,7 +27,7 @@ const httpRequest = (Provider.prototype as any).httpRequest console.log('updater httpRequest', url.href) if (url.pathname.endsWith('.atom')) { - url.host = 'github.com.cnpmjs.org' + url.host = 'hub.fastgit.org' headers.accept = '*/*' headers['user-agent'] = 'curl/7.77.0' url.pathname = url.pathname.replace('/https://github.com', '')