Fix proxy specification in mastodon websocket

This commit is contained in:
AkiraFukushima 2020-03-13 01:02:28 +09:00
parent eb1a7e427a
commit 802eff0b06

View file

@ -167,7 +167,7 @@ export default class WebSocket extends EventEmitter implements WebSocketInterfac
headers: headers
}
if (proxyConfig) {
options = Object.assign(proxyConfig, {
options = Object.assign(options, {
agent: proxyAgent(proxyConfig)
})
}