1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-02 10:33:36 +00:00

Don't send ack request when handshaking

This commit is contained in:
世界 2021-05-18 17:41:03 +08:00
parent f56f434b23
commit 1f553870bf
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 8 additions and 8 deletions

View File

@ -35,6 +35,12 @@ public:
void setOverrideProxy(std::string address, uint16_t port, std::string username, std::string password, std::string secret);
void onHostNameResolved(std::string host, std::string ip, bool ipv6);
std::string overrideProxyUser = "";
std::string overrideProxyPassword = "";
std::string overrideProxyAddress = "";
std::string overrideProxySecret = "";
uint16_t overrideProxyPort = 1080;
protected:
int32_t instanceNum;
void onEvent(uint32_t events);
@ -46,12 +52,6 @@ protected:
virtual void onConnected() = 0;
virtual bool hasPendingRequests() = 0;
std::string overrideProxyUser = "";
std::string overrideProxyPassword = "";
std::string overrideProxyAddress = "";
std::string overrideProxySecret = "";
uint16_t overrideProxyPort = 1080;
private:
ByteStream *outgoingByteStream = nullptr;
struct epoll_event eventMask;

View File

@ -911,9 +911,9 @@ void Handshake::processHandshakeResponse(TLObject *message, int64_t messageId) {
}
void Handshake::sendAckRequest(int64_t messageId) {
TL_msgs_ack *msgsAck = new TL_msgs_ack();
/*TL_msgs_ack *msgsAck = new TL_msgs_ack();
msgsAck->msg_ids.push_back(messageId);
sendRequestData(msgsAck, false);
sendRequestData(msgsAck, false);*/
}
TLObject *Handshake::getCurrentHandshakeRequest() {