diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2016-01-29 13:46:48 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2016-01-29 13:46:48 +0000 |
commit | a333f3bcb1f4ccd81aa658de24767aa5e6c7e480 (patch) | |
tree | 70045e2fe56e7236c4a34a21be531afe93036bb3 /protocols/WhatsApp/src/connection.cpp | |
parent | 6b82dc2cd3d41ac2354d6c0b4633e4e659da991d (diff) |
temporary revert due to a possible account ban
git-svn-id: http://svn.miranda-ng.org/main/trunk@16185 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/connection.cpp')
-rw-r--r-- | protocols/WhatsApp/src/connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/connection.cpp b/protocols/WhatsApp/src/connection.cpp index 4c5f43f826..be64ed1b41 100644 --- a/protocols/WhatsApp/src/connection.cpp +++ b/protocols/WhatsApp/src/connection.cpp @@ -64,9 +64,9 @@ void WhatsAppProto::stayConnectedLoop(void*) std::string password(passBin, passLen), resource = ACCOUNT_RESOURCE;
int portNumber;
if (getByte(WHATSAPP_KEY_SSL, 0))
- portNumber = 443, resource += "";
+ portNumber = 443, resource += "-443";
else
- portNumber = 5222, resource += "";
+ portNumber = 5222, resource += "-5222";
m_pSocket = new WASocketConnection("c.whatsapp.net", portNumber);
m_pConnection = new WAConnection(m_szPhoneNumber, resource, &connMutex, &writerMutex, m_pSocket, this, this);
|