1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Enabled TLS 1.3 support

IE11 might have issues so we don't support IE11.
This commit is contained in:
Harvey Kandola 2019-03-01 17:15:15 +00:00
parent 4d0de69489
commit df8e843bf5

View file

@ -26,6 +26,9 @@ import (
// InitRuntime prepares runtime using command line and environment variables. // InitRuntime prepares runtime using command line and environment variables.
func InitRuntime(r *env.Runtime, s *store.Store) bool { func InitRuntime(r *env.Runtime, s *store.Store) bool {
// TODO: remove this line when Go1.13 is released.
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
// We need SALT to hash auth JWT tokens // We need SALT to hash auth JWT tokens
if r.Flags.Salt == "" { if r.Flags.Salt == "" {
r.Flags.Salt = secrets.RandSalt() r.Flags.Salt = secrets.RandSalt()