mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #14904 from ANR2ME/adhoc
[Adhoc] Do not resolve Pro Adhoc Server address when WLAN is turned off
This commit is contained in:
commit
b8ea95bec1
1 changed files with 1 additions and 1 deletions
|
@ -1357,7 +1357,7 @@ int friendFinder(){
|
|||
addrinfo* resolved = nullptr;
|
||||
std::string err;
|
||||
g_adhocServerIP.in.sin_addr.s_addr = INADDR_NONE;
|
||||
if (!net::DNSResolve(g_Config.proAdhocServer, "", &resolved, err)) {
|
||||
if (g_Config.bEnableWlan && !net::DNSResolve(g_Config.proAdhocServer, "", &resolved, err)) {
|
||||
ERROR_LOG(SCENET, "DNS Error Resolving %s\n", g_Config.proAdhocServer.c_str());
|
||||
host->NotifyUserMessage(n->T("DNS Error Resolving ") + g_Config.proAdhocServer, 2.0f, 0x0000ff);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue