diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-10-14 01:53:28 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-10-14 01:53:28 +0900 |
| commit | 8da278a2797e970da12010fdd60c65592c572e6c (patch) | |
| tree | 27e49d9d5c5c9a6fbd0ad5301b3593f534a4e92a /src | |
| parent | Resolve #5500 (diff) | |
| download | misskey-8da278a2797e970da12010fdd60c65592c572e6c.tar.gz misskey-8da278a2797e970da12010fdd60c65592c572e6c.tar.bz2 misskey-8da278a2797e970da12010fdd60c65592c572e6c.zip | |
Update https-proxy-agent など (#5497)
* Use proxy for web-push
* https-proxy-agent 3.0.0
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/push-notification.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/push-notification.ts b/src/services/push-notification.ts index da1c1dbf5e..fa7cacfdc4 100644 --- a/src/services/push-notification.ts +++ b/src/services/push-notification.ts @@ -29,7 +29,9 @@ export default async function(userId: string, type: string, body?: any) { push.sendNotification(pushSubscription, JSON.stringify({ type, body - })).catch((err: any) => { + }), { + proxy: config.proxy + }).catch((err: any) => { //swLogger.info(err.statusCode); //swLogger.info(err.headers); //swLogger.info(err.body); |