mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
feat: refine Trojan simplified config
This commit is contained in:
parent
679d713b89
commit
954dab8eaf
@ -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)
|
||||
}))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user