diff --git a/proxy/freedom/freedom.go b/proxy/freedom/freedom.go index 2a9422002..6e14b3bd2 100644 --- a/proxy/freedom/freedom.go +++ b/proxy/freedom/freedom.go @@ -4,7 +4,6 @@ package freedom import ( "context" - "github.com/v2fly/v2ray-core/v4/common/registry" "time" core "github.com/v2fly/v2ray-core/v4" @@ -39,8 +38,6 @@ func init() { fullConfig := &Config{} return common.CreateObject(ctx, fullConfig) })) - - common.Must(registry.RegisterImplementation(new(SimplifiedConfig).ProtoReflect().Descriptor(), nil)) } // Handler handles Freedom connections. diff --git a/proxy/socks/simplified/config.go b/proxy/socks/simplified/config.go index 109eb5c15..30dcdf4b7 100644 --- a/proxy/socks/simplified/config.go +++ b/proxy/socks/simplified/config.go @@ -4,7 +4,6 @@ import ( "context" "github.com/v2fly/v2ray-core/v4/common" "github.com/v2fly/v2ray-core/v4/common/protocol" - "github.com/v2fly/v2ray-core/v4/common/registry" "github.com/v2fly/v2ray-core/v4/proxy/socks" ) @@ -18,7 +17,6 @@ func init() { } return common.CreateObject(ctx, fullServer) })) - common.Must(registry.RegisterImplementation(new(ServerConfig).ProtoReflect().Descriptor(), nil)) common.Must(common.RegisterConfig((*ClientConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) { simplifiedClient := config.(*ClientConfig) @@ -32,5 +30,4 @@ func init() { } return common.CreateObject(ctx, fullClient) })) - common.Must(registry.RegisterImplementation(new(ClientConfig).ProtoReflect().Descriptor(), nil)) }