mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-29 23:36:25 -04:00
comments
This commit is contained in:
parent
93d913b959
commit
784d4ce560
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user