feat: refine Trojan simplified config

This commit is contained in:
秋のかえで 2021-09-06 13:00:49 +08:00 committed by Shelikhoo
parent 679d713b89
commit 954dab8eaf
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 2 additions and 2 deletions

View File

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