From 9b5d6bf74667f80847beb5599c86d275ce5757d9 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 24 Dec 2019 16:20:18 -0500 Subject: [PATCH] fix #713 --- irc/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/irc/config.go b/irc/config.go index 58fa60da..ffeec15e 100644 --- a/irc/config.go +++ b/irc/config.go @@ -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: