mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 15:25:35 +00:00
Flush pair code for external scripts
This commit is contained in:
parent
4164dc512f
commit
87613b3176
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user