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:
parent
4d0de69489
commit
df8e843bf5
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue