pull/298/merge
Darien Raymond 8 years ago
parent 93d913b959
commit 784d4ce560
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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

Loading…
Cancel
Save