1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-01 23:15:21 -05:00

Merge pull request #168 from xiaokangwang/fix.internal.CreateOutboundHandler.ErrorProxyNotFound

Fixed: internal.CreateOutboundHandler should return ErrorProxyNotFound if !found instead of ErrorNameExists
This commit is contained in:
Darien Raymond
2016-06-09 11:03:18 +02:00

View File

@@ -63,7 +63,7 @@ func CreateInboundHandler(name string, space app.Space, rawConfig []byte, meta *
func CreateOutboundHandler(name string, space app.Space, rawConfig []byte, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error) {
creator, found := outboundFactories[name]
if !found {
return nil, ErrorNameExists
return nil, ErrorProxyNotFound
}
if len(rawConfig) > 0 {