Fix ipv6 connection hangs when in v4 environment

This commit is contained in:
ayanamist 2022-11-28 12:09:07 +08:00
parent 0e17caa7a6
commit 4d29446078
No known key found for this signature in database
GPG key ID: 7B155EECAAD929D3

View file

@ -305,9 +305,7 @@ void Connection::connect() {
ipv6 = value % 3 == 0 ? TcpAddressFlagIpv6 : 0; ipv6 = value % 3 == 0 ? TcpAddressFlagIpv6 : 0;
ConnectionsManager::getInstance(currentDatacenter->instanceNum).lastProtocolIsIpv6 = ipv6 != 0; ConnectionsManager::getInstance(currentDatacenter->instanceNum).lastProtocolIsIpv6 = ipv6 != 0;
} }
if (connectionType == ConnectionTypeGeneric) {
ConnectionsManager::getInstance(currentDatacenter->instanceNum).lastProtocolUsefullData = false; ConnectionsManager::getInstance(currentDatacenter->instanceNum).lastProtocolUsefullData = false;
}
} else { } else {
ipv6 = 0; ipv6 = 0;
} }