浏览代码

feat: refine Trojan simplified config

秋のかえで 4 年之前
父节点
当前提交
954dab8eaf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      proxy/trojan/simplified/config.go

+ 2 - 2
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)
 	}))
 }