mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-26 20:52:38 +01:00
commit
f05c6ae6e0
@ -854,6 +854,9 @@ func LoadConfig(filename string) (config *Config, err error) {
|
||||
if config.Server.Cloaks.Secret == "" || config.Server.Cloaks.Secret == "siaELnk6Kaeo65K3RCrwJjlWaZ-Bt3WuZ2L8MXLbNb4" {
|
||||
return nil, fmt.Errorf("You must generate a new value of server.ip-cloaking.secret to enable cloaking")
|
||||
}
|
||||
if !utils.IsHostname(config.Server.Cloaks.Netname) {
|
||||
return nil, fmt.Errorf("Invalid netname for cloaked hostnames: %s", config.Server.Cloaks.Netname)
|
||||
}
|
||||
}
|
||||
|
||||
// now that all postprocessing is complete, regenerate ISUPPORT:
|
||||
|
Loading…
Reference in New Issue
Block a user