add a manual entry for cloaks

This commit is contained in:
Shivaram Lingamneni 2019-05-12 19:19:36 -04:00
parent 11076be0ee
commit 18cf816396
2 changed files with 12 additions and 1 deletions

View file

@ -733,7 +733,7 @@ func LoadConfig(filename string) (config *Config, err error) {
config.Server.Cloaks.Initialize()
if config.Server.Cloaks.Enabled {
if config.Server.Cloaks.Secret == "" || config.Server.Cloaks.Secret == "siaELnk6Kaeo65K3RCrwJjlWaZ-Bt3WuZ2L8MXLbNb4" {
return nil, fmt.Errorf("You must generate a new value of ip-cloaking.secret to enable cloaking")
return nil, fmt.Errorf("You must generate a new value of server.ip-cloaking.secret to enable cloaking")
}
}