Skip to content

Fixed https vs http checker

Latest
Compare
Choose a tag to compare
@bravecorvus bravecorvus released this 07 Jan 19:26
· 38 commits to master since this release

-Fixed old behavior that didn't allow for unencrypted http serving (since port 3000 was already being used by a failing tls serve command above. Instead of using a err != nil command, the new method checks to see if the server.crt and server.key files exist in the same directory as the executable, and then run the TLS server only if it finds them. (Hence, the program will no longer panic with the "port 3000 already in use error."