mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 16:43:15 +00:00
trivial: Automatically set the socket address on Windows
This commit is contained in:
parent
1c1f180d84
commit
a489ec13bb
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user