mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-20 23:34:22 +02:00
Disable UserTokenSigningKey randomization (#107)
This commit is contained in:
parent
a687557e69
commit
6b4e6bdced
1 changed files with 0 additions and 5 deletions
|
@ -200,11 +200,6 @@ func Load(configFile string) Configuration {
|
||||||
Conf.Security.UserTokenEncryptionKey, _ = security.GenerateRandomString(32)
|
Conf.Security.UserTokenEncryptionKey, _ = security.GenerateRandomString(32)
|
||||||
log.Printf("No valid `security.usertokenencryptionkey` specified (empty or not 32 characters). Setting to random")
|
log.Printf("No valid `security.usertokenencryptionkey` specified (empty or not 32 characters). Setting to random")
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(Conf.Security.UserTokenSigningKey) != 32 {
|
|
||||||
Conf.Security.UserTokenSigningKey, _ = security.GenerateRandomString(32)
|
|
||||||
log.Printf("No valid `security.usertokensigningkey` specified (empty or not 32 characters). Setting to random")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(Conf.Server.SessionKey) != 32 {
|
if len(Conf.Server.SessionKey) != 32 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue