mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
rename
This commit is contained in:
parent
5e16fa2dcd
commit
9ae258de3d
@ -31,7 +31,7 @@ func (this *BlackHole) Dispatch(firstPacket v2net.Packet, ray ray.OutboundRay) e
|
||||
}
|
||||
|
||||
func init() {
|
||||
internal.MustRegisterOutboundConnectionHandlerCreator("blackhole",
|
||||
internal.MustRegisterOutboundHandlerCreator("blackhole",
|
||||
func(space app.Space, config interface{}) (proxy.OutboundHandler, error) {
|
||||
return NewBlackHole(), nil
|
||||
})
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
internal.MustRegisterInboundConnectionHandlerCreator("dokodemo-door",
|
||||
internal.MustRegisterInboundHandlerCreator("dokodemo-door",
|
||||
func(space app.Space, rawConfig interface{}) (proxy.InboundHandler, error) {
|
||||
config := rawConfig.(*Config)
|
||||
return NewDokodemoDoor(space, config), nil
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
internal.MustRegisterOutboundConnectionHandlerCreator("freedom",
|
||||
internal.MustRegisterOutboundHandlerCreator("freedom",
|
||||
func(space app.Space, config interface{}) (proxy.OutboundHandler, error) {
|
||||
return &FreedomConnection{space: space}, nil
|
||||
})
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
internal.MustRegisterInboundConnectionHandlerCreator("http",
|
||||
internal.MustRegisterInboundHandlerCreator("http",
|
||||
func(space app.Space, rawConfig interface{}) (proxy.InboundHandler, error) {
|
||||
return NewHttpProxyServer(space, rawConfig.(*Config)), nil
|
||||
})
|
||||
|
@ -25,7 +25,7 @@ func RegisterInboundHandlerCreator(name string, creator InboundHandlerCreator) e
|
||||
return nil
|
||||
}
|
||||
|
||||
func MustRegisterInboundConnectionHandlerCreator(name string, creator InboundHandlerCreator) {
|
||||
func MustRegisterInboundHandlerCreator(name string, creator InboundHandlerCreator) {
|
||||
if err := RegisterInboundHandlerCreator(name, creator); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@ -39,7 +39,7 @@ func RegisterOutboundHandlerCreator(name string, creator OutboundHandlerCreator)
|
||||
return nil
|
||||
}
|
||||
|
||||
func MustRegisterOutboundConnectionHandlerCreator(name string, creator OutboundHandlerCreator) {
|
||||
func MustRegisterOutboundHandlerCreator(name string, creator OutboundHandlerCreator) {
|
||||
if err := RegisterOutboundHandlerCreator(name, creator); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
internal.MustRegisterInboundConnectionHandlerCreator("socks",
|
||||
internal.MustRegisterInboundHandlerCreator("socks",
|
||||
func(space app.Space, rawConfig interface{}) (proxy.InboundHandler, error) {
|
||||
return NewSocksServer(space, rawConfig.(*Config)), nil
|
||||
})
|
||||
|
@ -174,7 +174,7 @@ func handleOutput(request *protocol.VMessRequest, writer io.Writer, output <-cha
|
||||
}
|
||||
|
||||
func init() {
|
||||
internal.MustRegisterInboundConnectionHandlerCreator("vmess",
|
||||
internal.MustRegisterInboundHandlerCreator("vmess",
|
||||
func(space app.Space, rawConfig interface{}) (proxy.InboundHandler, error) {
|
||||
config := rawConfig.(*Config)
|
||||
|
||||
|
@ -190,7 +190,7 @@ func (this *VMessOutboundHandler) handleResponse(conn net.Conn, request *protoco
|
||||
}
|
||||
|
||||
func init() {
|
||||
internal.MustRegisterOutboundConnectionHandlerCreator("vmess",
|
||||
internal.MustRegisterOutboundHandlerCreator("vmess",
|
||||
func(space app.Space, rawConfig interface{}) (proxy.OutboundHandler, error) {
|
||||
vOutConfig := rawConfig.(*Config)
|
||||
return &VMessOutboundHandler{
|
||||
|
Loading…
Reference in New Issue
Block a user