summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-10-14 01:53:28 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-10-14 01:53:28 +0900
commit8da278a2797e970da12010fdd60c65592c572e6c (patch)
tree27e49d9d5c5c9a6fbd0ad5301b3593f534a4e92a /src
parentResolve #5500 (diff)
downloadmisskey-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.ts4
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);