mirror of https://github.com/v2ray/v2ray-core
Fixed: internal.CreateOutboundHandler should return ErrorProxyNotFound if !found instead of ErrorNameExists
parent
dfe1ac1f2b
commit
3b1f8b553b
|
@ -63,7 +63,7 @@ func CreateInboundHandler(name string, space app.Space, rawConfig []byte) (proxy
|
|||
func CreateOutboundHandler(name string, space app.Space, rawConfig []byte) (proxy.OutboundHandler, error) {
|
||||
creator, found := outboundFactories[name]
|
||||
if !found {
|
||||
return nil, ErrorNameExists
|
||||
return nil, ErrorProxyNotFound
|
||||
}
|
||||
|
||||
if len(rawConfig) > 0 {
|
||||
|
|
Loading…
Reference in New Issue