1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 14:56:33 -04:00
This commit is contained in:
Darien Raymond 2017-04-26 21:28:10 +02:00
parent 93d913b959
commit 784d4ce560
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -4,7 +4,6 @@ package impl
import ( import (
"context" "context"
"time" "time"
"v2ray.com/core/app" "v2ray.com/core/app"
@ -23,6 +22,10 @@ var (
errSniffingTimeout = newError("timeout on sniffing") errSniffingTimeout = newError("timeout on sniffing")
) )
var (
_ app.Application = (*DefaultDispatcher)(nil)
)
// DefaultDispatcher is a default implementation of Dispatcher. // DefaultDispatcher is a default implementation of Dispatcher.
type DefaultDispatcher struct { type DefaultDispatcher struct {
ohm proxyman.OutboundHandlerManager ohm proxyman.OutboundHandlerManager
@ -47,12 +50,15 @@ func NewDefaultDispatcher(ctx context.Context, config *dispatcher.Config) (*Defa
return d, nil return d, nil
} }
// Start implements app.Application.
func (*DefaultDispatcher) Start() error { func (*DefaultDispatcher) Start() error {
return nil return nil
} }
// Close implements app.Application.
func (*DefaultDispatcher) Close() {} func (*DefaultDispatcher) Close() {}
// Interface implements app.Application.
func (*DefaultDispatcher) Interface() interface{} { func (*DefaultDispatcher) Interface() interface{} {
return (*dispatcher.Interface)(nil) return (*dispatcher.Interface)(nil)
} }