diff --git a/rehlds/HLTV/Proxy/src/Master.cpp b/rehlds/HLTV/Proxy/src/Master.cpp index 44aea36..af9b3f7 100644 --- a/rehlds/HLTV/Proxy/src/Master.cpp +++ b/rehlds/HLTV/Proxy/src/Master.cpp @@ -132,7 +132,7 @@ void Master::RunFrame(double time) SteamGameServer()->SetGameDescription("hltv"); SteamGameServer()->SetModDir(world->GetGameDir()); SteamGameServer()->SetDedicatedServer(true); - SteamGameServer()->SetSpectatorPort(netAdr->m_Port); + SteamGameServer()->SetSpectatorPort(htons(netAdr->m_Port)); SteamGameServer()->LogOnAnonymous(); SteamGameServer()->EnableHeartbeats(true);