mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 00:16:26 +00:00
move connhandler to proxy
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"github.com/v2ray/v2ray-core/proxy/common/connhandler"
|
||||
"github.com/v2ray/v2ray-core/proxy"
|
||||
)
|
||||
|
||||
type InboundHandlerManager interface {
|
||||
GetHandler(tag string) (connhandler.InboundConnectionHandler, int)
|
||||
GetHandler(tag string) (proxy.InboundConnectionHandler, int)
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@ package internal
|
||||
|
||||
import (
|
||||
"github.com/v2ray/v2ray-core/app"
|
||||
"github.com/v2ray/v2ray-core/proxy/common/connhandler"
|
||||
"github.com/v2ray/v2ray-core/proxy"
|
||||
)
|
||||
|
||||
type InboundHandlerManagerWithContext interface {
|
||||
GetHandler(context app.Context, tag string) (connhandler.InboundConnectionHandler, int)
|
||||
GetHandler(context app.Context, tag string) (proxy.InboundConnectionHandler, int)
|
||||
}
|
||||
|
||||
type inboundHandlerManagerWithContext struct {
|
||||
@@ -14,6 +14,6 @@ type inboundHandlerManagerWithContext struct {
|
||||
manager InboundHandlerManagerWithContext
|
||||
}
|
||||
|
||||
func (this *inboundHandlerManagerWithContext) GetHandler(tag string) (connhandler.InboundConnectionHandler, int) {
|
||||
func (this *inboundHandlerManagerWithContext) GetHandler(tag string) (proxy.InboundConnectionHandler, int) {
|
||||
return this.manager.GetHandler(this.context, tag)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user