v2ray 9 سال پیش
والد
کامیت
9ae258de3d

+ 1 - 1
proxy/blackhole/blackhole.go

@@ -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
 		})

+ 1 - 1
proxy/dokodemo/dokodemo_factory.go

@@ -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

+ 1 - 1
proxy/freedom/freedomfactory.go

@@ -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
 		})

+ 1 - 1
proxy/http/http_factory.go

@@ -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
 		})

+ 2 - 2
proxy/internal/handler_cache.go

@@ -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)
 	}

+ 1 - 1
proxy/socks/socksfactory.go

@@ -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
 		})

+ 1 - 1
proxy/vmess/inbound/inbound.go

@@ -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)
 

+ 1 - 1
proxy/vmess/outbound/outbound.go

@@ -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{