mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-09 07:15:29 -04:00
check nil for outbound config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user