|
|
|
@ -44,12 +44,12 @@ const QString AutoUpdater::platform = "win64";
@@ -44,12 +44,12 @@ const QString AutoUpdater::platform = "win64";
|
|
|
|
|
const QString AutoUpdater::platform = "win32"; |
|
|
|
|
#endif |
|
|
|
|
const QString AutoUpdater::updaterBin = "qtox-updater.exe"; |
|
|
|
|
const QString AutoUpdater::updateServer = "https://tux3-dev.tox.im"; |
|
|
|
|
const QString AutoUpdater::updateServer = "https://212.47.234.181"; |
|
|
|
|
|
|
|
|
|
unsigned char AutoUpdater::key[crypto_sign_PUBLICKEYBYTES] = |
|
|
|
|
{ |
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
|
|
|
|
0xd6, 0x32, 0x8a, 0x08, 0xf9, 0xed, 0x14, 0x8a, 0xad, 0x97, 0xa1, 0x33, 0xc5, 0xe2, 0x6c, 0x77 |
|
|
|
|
0x3b, 0x51, 0xa2, 0x70, 0xc2, 0xd5, 0xc1, 0x5e, 0x31, 0xda, 0x2a, 0x39, 0x9e, 0xf6, 0x99, 0x7e |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#elif defined(Q_OS_OSX) |
|
|
|
@ -117,7 +117,7 @@ AutoUpdater::VersionInfo AutoUpdater::getUpdateVersion()
@@ -117,7 +117,7 @@ AutoUpdater::VersionInfo AutoUpdater::getUpdateVersion()
|
|
|
|
|
return versionInfo; |
|
|
|
|
|
|
|
|
|
// Check updater protocol version
|
|
|
|
|
if ((int)data[0] != '2') |
|
|
|
|
if ((int)data[0] != '3') |
|
|
|
|
{ |
|
|
|
|
qWarning() << "getUpdateVersion: Bad version " << (uint8_t)data[0]; |
|
|
|
|
return versionInfo; |
|
|
|
|