mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
Fix ipv6 connection hangs when in v4 environment
This commit is contained in:
parent
0e17caa7a6
commit
4d29446078
1 changed files with 1 additions and 3 deletions
|
@ -305,9 +305,7 @@ void Connection::connect() {
|
|||
ipv6 = value % 3 == 0 ? TcpAddressFlagIpv6 : 0;
|
||||
ConnectionsManager::getInstance(currentDatacenter->instanceNum).lastProtocolIsIpv6 = ipv6 != 0;
|
||||
}
|
||||
if (connectionType == ConnectionTypeGeneric) {
|
||||
ConnectionsManager::getInstance(currentDatacenter->instanceNum).lastProtocolUsefullData = false;
|
||||
}
|
||||
} else {
|
||||
ipv6 = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue