From 954dab8eafaac7b2e8dc4c0a748e18422a2920bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E3=81=AE=E3=81=8B=E3=81=88=E3=81=A7?= Date: Mon, 6 Sep 2021 13:00:49 +0800 Subject: [PATCH] feat: refine Trojan simplified config --- proxy/trojan/simplified/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/trojan/simplified/config.go b/proxy/trojan/simplified/config.go index 6cdcd6eb4..31f476121 100644 --- a/proxy/trojan/simplified/config.go +++ b/proxy/trojan/simplified/config.go @@ -23,7 +23,7 @@ func init() { return }(), } - return trojan.NewServer(ctx, fullServer) + return common.CreateObject(ctx, fullServer) })) common.Must(common.RegisterConfig((*ClientConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) { @@ -40,6 +40,6 @@ func init() { }, }, } - return trojan.NewClient(ctx, fullClient) + return common.CreateObject(ctx, fullClient) })) }