Skip to content

Commit a4d1740

Browse files
committed
fix: Adjusts in proxy on fetchAgent
1 parent 1a2ea1c commit a4d1740

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.7.4 (develop)
2+
3+
### Fixed
4+
* Adjusts in proxy
5+
16
# 1.7.3 (2024-04-18 12:07)
27

38
### Fixed

src/api/services/whatsapp/whatsapp.baileys.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,13 +517,15 @@ export class BaileysStartupService extends WAStartupService {
517517
const proxyUrl = 'http://' + proxyUrls[rand];
518518
options = {
519519
agent: makeProxyAgent(proxyUrl),
520+
fetchAgent: makeProxyAgent(proxyUrl),
520521
};
521522
} catch (error) {
522523
this.localProxy.enabled = false;
523524
}
524525
} else {
525526
options = {
526527
agent: makeProxyAgent(this.localProxy.proxy),
528+
fetchAgent: makeProxyAgent(this.localProxy.proxy),
527529
};
528530
}
529531
}
@@ -687,13 +689,15 @@ export class BaileysStartupService extends WAStartupService {
687689
const proxyUrl = 'http://' + proxyUrls[rand];
688690
options = {
689691
agent: makeProxyAgent(proxyUrl),
692+
fetchAgent: makeProxyAgent(proxyUrl),
690693
};
691694
} catch (error) {
692695
this.localProxy.enabled = false;
693696
}
694697
} else {
695698
options = {
696699
agent: makeProxyAgent(this.localProxy.proxy),
700+
fetchAgent: makeProxyAgent(this.localProxy.proxy),
697701
};
698702
}
699703
}

0 commit comments

Comments
 (0)