mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 09:26:21 -05:00
17 lines
629 B
Go
17 lines
629 B
Go
package repo
|
|
|
|
import (
|
|
"github.com/v2ray/v2ray-core/app"
|
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
|
"github.com/v2ray/v2ray-core/proxy"
|
|
"github.com/v2ray/v2ray-core/proxy/internal"
|
|
)
|
|
|
|
func CreateInboundHandler(name string, space app.Space, rawConfig []byte, listen v2net.Address, port v2net.Port) (proxy.InboundHandler, error) {
|
|
return internal.CreateInboundHandler(name, space, rawConfig, listen, port)
|
|
}
|
|
|
|
func CreateOutboundHandler(name string, space app.Space, rawConfig []byte, sendThrough v2net.Address) (proxy.OutboundHandler, error) {
|
|
return internal.CreateOutboundHandler(name, space, rawConfig, sendThrough)
|
|
}
|