check nil for outbound config

pull/467/head^2
Darien Raymond 2017-02-01 12:15:18 +01:00
parent d742cf71cb
commit 57fc444b3c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 3 additions and 0 deletions

View File

@ -339,6 +339,9 @@ func (v *Config) Build() (*core.Config, error) {
config.Inbound = append(config.Inbound, ic)
}
if v.OutboundConfig == nil {
return nil, errors.New("Config: No outbound config specified.")
}
oc, err := v.OutboundConfig.Build()
if err != nil {
return nil, err