1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00
This commit is contained in:
Darien Raymond 2018-10-16 14:23:10 +02:00
parent 5c112c2f32
commit be56feead3
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -18,6 +18,7 @@ func CreateObject(v *Instance, config interface{}) (interface{}, error) {
}
// StartInstance starts a new V2Ray instance with given serialized config.
// By default V2Ray only support config in protobuf format, i.e., configFormat = "protobuf". Caller need to load other packages to add JSON support.
func StartInstance(configFormat string, configBytes []byte) (*Instance, error) {
var mb buf.MultiBuffer
common.Must2(mb.Write(configBytes))