http: Set a more useful user agent.

This commit is contained in:
Unknown W. Brackets committed 2021-04-30 23:12:42 -07:00
1 parent e2e1c677cb
commit a35b21a5d7
7 files changed
+19 -4

No files matched your search

+2
View File
@@ -117,6 +117,8 @@ bool RemoteISOConnectScreen::FindServer(std::string &resultHost, int &resultPort
statusMessage_ = formatted;
};
http.SetUserAgent(StringFromFormat("PPSSPP/%s", PPSSPP_GIT_VERSION));
auto TryServer = [&](const std::string &host, int port) {
SetStatus("Resolving [URL]...", host, port);
if (!http.Resolve(host.c_str(), port)) {