forked from External/ergo
review fixes
This commit is contained in:
parent
2451737f87
commit
11076be0ee
4 changed files with 18 additions and 2 deletions
|
|
@ -731,6 +731,11 @@ 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")
|
||||
}
|
||||
}
|
||||
|
||||
for _, listenAddress := range config.Server.TorListeners.Listeners {
|
||||
found := false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue