allow connecting to adhoc server on 127.0.0.1 with built-in server disabled

This commit is contained in:
Katharine Chui committed 2026-09-06 14:11:18 +02:00
1 parent 2731918f05
commit aa4a4eb18d
1 file changed
-4
-4
View File
@@ -2237,10 +2237,6 @@ int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){
if (g_adhocServerIP.in.sin_addr.s_addr == INADDR_NONE)
return SOCKET_ERROR;
// Don't need to connect if AdhocServer IP is the same with this instance localhost IP and having AdhocServer disabled
if (g_adhocServerIP.in.sin_addr.s_addr == g_localhostIP.in.sin_addr.s_addr && !g_Config.bEnableAdhocServer)
return SOCKET_ERROR;
// Connect to Adhoc Server
int errorcode = 0;
int cnt = 0;