KaukausInsurgency / ki-dcs

Kaukasus Insurgency
5 stars 2 forks source link

TCP Server Version Check before accepting connection #222

Closed Igneous01 closed 6 years ago

Igneous01 commented 6 years ago

Because it's not known what version clients may be running, should implement a version check in the TCP Server and the DCS Server Mod to verify the versions match.

If they do not match - send an error message stating the the version number is mismatched and that they should update.

Igneous01 commented 6 years ago

This should work with a GUID that is generated for each version release. The GUID is compiled into the Server Mod as a property the game sends to TCP Server - The DB would also store a GUID of the version it is running. Then do a check if the versions match in a stored proc.