1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00
This commit is contained in:
Darien Raymond 2018-12-31 10:43:08 +01:00
parent 1c830472b9
commit d35c407419
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -263,5 +263,13 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *transport.
newError("default route for ", destination).WriteToLog(session.ExportIDToError(ctx))
}
}
if dispatcher == nil {
newError("default outbound handler not exist").WriteToLog(session.ExportIDToError(ctx))
common.Close(link.Writer)
pipe.CloseError(link.Reader)
return
}
dispatcher.Dispatch(ctx, link)
}