1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 14:03:52 +00:00

Use domain name, not IP address for update checks.

This commit is contained in:
Bartosz Taudul 2020-09-14 22:35:03 +02:00
parent a52888dbd5
commit f50c5d8ff4

View File

@ -230,7 +230,7 @@ int main( int argc, char** argv )
mainThread = std::this_thread::get_id(); mainThread = std::this_thread::get_id();
updateThread = std::thread( [] { updateThread = std::thread( [] {
HttpRequest( "51.89.23.220", "/tracy/version", 8099, [] ( int size, char* data ) { HttpRequest( "nereid.pl", "/tracy/version", 8099, [] ( int size, char* data ) {
if( size == 4 ) if( size == 4 )
{ {
uint32_t ver; uint32_t ver;
@ -630,7 +630,7 @@ static void DrawContents()
if( !updateNotesThread.joinable() ) if( !updateNotesThread.joinable() )
{ {
updateNotesThread = std::thread( [] { updateNotesThread = std::thread( [] {
HttpRequest( "51.89.23.220", "/tracy/notes", 8099, [] ( int size, char* data ) { HttpRequest( "nereid.pl", "/tracy/notes", 8099, [] ( int size, char* data ) {
std::string notes( data, data+size ); std::string notes( data, data+size );
delete[] data; delete[] data;
RunOnMainThread( [notes = move( notes )] { releaseNotes = std::move( notes ); } ); RunOnMainThread( [notes = move( notes )] { releaseNotes = std::move( notes ); } );