trivial: Automatically set the socket address on Windows

This commit is contained in:
Richard Hughes 2022-05-11 15:57:36 +01:00 committed by Mario Limonciello
parent 1c1f180d84
commit a489ec13bb
2 changed files with 8 additions and 0 deletions

View File

@ -826,6 +826,10 @@ fwupd_client_connect_async(FwupdClient *self,
} else {
socket_address = g_strdup(socket_filename);
}
} else {
#ifdef _WIN32
socket_address = g_strdup("tcp:host=localhost,port=1341");
#endif
}
/* use peer-to-peer only if the env variable is set */

View File

@ -2381,6 +2381,10 @@ main(int argc, char *argv[])
} else {
socket_address = g_strdup(socket_filename);
}
} else {
#ifdef _WIN32
socket_address = g_strdup("tcp:host=localhost,port=1341");
#endif
}
/* own the object */