send force MITM setting with lobby announcement

This commit is contained in:
Brad Parker 2017-03-04 16:25:23 -05:00
parent f2c4eb5047
commit 8a01dda5d6

View File

@ -543,9 +543,11 @@ static void netplay_announce(void)
buf[0] = '\0';
snprintf(buf, sizeof(buf), "username=%s&core_name=%s&core_version=%s&"
"game_name=%s&game_crc=%08X&port=%d&has_password=%d&has_spectate_password=%d",
"game_name=%s&game_crc=%08X&port=%d"
"&has_password=%d&has_spectate_password=%d&force_mitm=%d",
username, corename, coreversion, gamename, *content_crc_ptr,
settings->netplay.port, settings->netplay.password ? 1 : 0, settings->netplay.spectate_password ? 1 : 0);
settings->netplay.port, settings->netplay.password ? 1 : 0, settings->netplay.spectate_password ? 1 : 0,
settings->netplay.use_mitm_server);
task_push_http_post_transfer(url, buf, true, NULL, netplay_announce_cb, NULL);