Comment out debug printf, change User Agent used when fetching

master
teknomunk 8 months ago
parent 9685583e79
commit 07c197396c

@ -597,7 +597,7 @@ struct account* account_load_next_update()
return NULL; return NULL;
} }
printf( "Unable to load index entry #%d\n", count ); //printf( "Unable to load index entry #%d\n", count );
free(key); key = NULL; free(key); key = NULL;
free(value); value = NULL; free(value); value = NULL;
count -= 1; count -= 1;

@ -73,7 +73,7 @@ size_t fetch_handle_header( char* header, size_t size, size_t nitems, void* user
static bool do_fetch_tor( const char* uri, struct fetch_data* fd, const char* result_filename ) static bool do_fetch_tor( const char* uri, struct fetch_data* fd, const char* result_filename )
{ {
char user_agent[512]; char user_agent[512];
snprintf( user_agent, sizeof(user_agent), "User-Agent: curl (Apogee/0.1; +https://%s/owner/actor)", g_server->domain ); snprintf( user_agent, sizeof(user_agent), "User-Agent: Apogee/0.1; +https://%s/owner/actor", g_server->domain );
char proxy[512]; char proxy[512];
snprintf( proxy,512, "socks5h://localhost:%d", g_server->tor_socks_port ); snprintf( proxy,512, "socks5h://localhost:%d", g_server->tor_socks_port );

Loading…
Cancel
Save