|
@@ -830,6 +830,9 @@ func (conf *Config) Operators(oc map[string]*OperClass) (map[string]*Oper, error
|
830
|
830
|
}
|
831
|
831
|
|
832
|
832
|
oper.Vhost = opConf.Vhost
|
|
833
|
+ if oper.Vhost != "" && !conf.Accounts.VHosts.validRegexp.MatchString(oper.Vhost) {
|
|
834
|
+ return nil, fmt.Errorf("Oper %s has an invalid vhost: `%s`", name, oper.Vhost)
|
|
835
|
+ }
|
833
|
836
|
class, exists := oc[opConf.Class]
|
834
|
837
|
if !exists {
|
835
|
838
|
return nil, fmt.Errorf("Could not load operator [%s] - they use operclass [%s] which does not exist", name, opConf.Class)
|