Hopefully this fixes the SteamAPI_ISteamGameServer_GetPublicIP function

This commit is contained in:
Mr_Goldberg 2021-04-09 14:53:20 -04:00
parent c48526d49a
commit 19015c097c
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
6 changed files with 19 additions and 5 deletions

View file

@ -559,6 +559,12 @@ SteamIPAddress_t Steam_GameServer::GetPublicIP()
return ip;
}
void Steam_GameServer::GetPublicIP_fix(SteamIPAddress_t *out)
{
PRINT_DEBUG("GetPublicIP_fix\n");
if (out) *out = GetPublicIP();
}
// These are in GameSocketShare mode, where instead of ISteamGameServer creating its own
// socket to talk to the master server on, it lets the game use its socket to forward messages
// back and forth. This prevents us from requiring server ops to open up yet another port