Sunday, April 29, 2018

FMod - Fix update server connection

The shared hosting provider that serves as the Abiathar update server recently removed support for TLS 1.0, a good security move. However, the .NET Framework by default only supports TLS 1.0 for secure connections, which is weird. That broke Abiathar's ability to check for and download updates. So today I had to manually enable TLS 1.1 and TLS 1.2. Since Abiathar targets .NET 4.0, the enumeration constants for those don't exist yet, so I had to hardcode the numeric values:

Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Tls Or 768 Or 3072

I likewise adjusted the update client and embedded the new version into Abiathar.

No comments:

Post a Comment