Browse Source

:arrow_up: Increase default generated key lengths

Ettore Di Giacinto 3 years ago
parent
commit
5e69431105
1 changed files with 1 additions and 2 deletions
  1. 1 2
      pkg/node/options.go

+ 1 - 2
pkg/node/options.go

@@ -244,10 +244,9 @@ func (y YAMLConnectionConfig) copy(mdns, dht bool, cfg *Config) {
 	cfg.MaxMessageSize = y.MaxMessageSize
 }
 
-const defaultKeyLength = 24
+const defaultKeyLength = 32
 
 func GenerateNewConnectionData() *YAMLConnectionConfig {
-
 	return &YAMLConnectionConfig{
 		MaxMessageSize: 20 << 20, // 20MB
 		RoomName:       utils.RandStringRunes(defaultKeyLength),