Flush pair code for external scripts

This commit is contained in:
TheChoconut 2021-08-21 08:40:00 +02:00 committed by Cameron Gutman
parent 4164dc512f
commit 87613b3176

View File

@ -371,6 +371,7 @@ int main(int argc, char* argv[]) {
char pin[5];
sprintf(pin, "%d%d%d%d", (int)random() % 10, (int)random() % 10, (int)random() % 10, (int)random() % 10);
printf("Please enter the following PIN on the target PC: %s\n", pin);
fflush(stdout);
if (gs_pair(&server, &pin[0]) != GS_OK) {
fprintf(stderr, "Failed to pair to server: %s\n", gs_error);
} else {