veloren / Airshipper

The official Veloren launcher! This repository is a mirror. Please submit all PRs and issues on our GitLab page: https://gitlab.com/veloren/airshipper
https://veloren.net/download
GNU General Public License v3.0
257 stars 33 forks source link

Windows fixes for older versions #157

Closed JCapucho closed 3 years ago

JCapucho commented 3 years ago

Uses rustls instead of the default native-tls because on windows 8.1 and older it would use schannel (windows ssl library) which only supports until TLSv1.0 and that is no longer accepted by the veloren server.

Also adds a check for whether or not coloring the console output is wanted. The colored was already transitively depended by fern so there are new dependencies here (I made sure to line up the versions). There's also a bit of unsafe to call a windows api to get whether or not ansi ascii codes are supported I have wrote about why it's safe in the comment preceding the unsafe block