Proxy test

This commit is contained in:
Allyson de Paula 2023-08-12 15:05:10 -03:00
parent 6e401eecde
commit 907a0ee135
2 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,7 @@
"qrcode-terminal": "^0.12.0", "qrcode-terminal": "^0.12.0",
"redis": "^4.6.5", "redis": "^4.6.5",
"sharp": "^0.30.7", "sharp": "^0.30.7",
"socks-proxy-agent": "^8.0.1",
"uuid": "^9.0.0" "uuid": "^9.0.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -121,6 +121,7 @@ import { RepositoryBroker } from '../repository/repository.manager';
import { Events, MessageSubtype, TypeMediaMessage, wa } from '../types/wa.types'; import { Events, MessageSubtype, TypeMediaMessage, wa } from '../types/wa.types';
import { waMonitor } from '../whatsapp.module'; import { waMonitor } from '../whatsapp.module';
import { ChatwootService } from './chatwoot.service'; import { ChatwootService } from './chatwoot.service';
import { SocksProxyAgent } from 'socks-proxy-agent';
export class WAStartupService { export class WAStartupService {
constructor( constructor(
@ -874,6 +875,7 @@ export class WAStartupService {
return message; return message;
}, },
// agent: new SocksProxyAgent('socks5://192.168.1.4:1080'),
}; };
this.endSession = false; this.endSession = false;