fix StartInstance signature for mobile

This commit is contained in:
Darien Raymond 2018-10-11 23:36:38 +02:00
parent c3170dfc8e
commit dcd26ec61f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ func CreateObject(v *Instance, config interface{}) (interface{}, error) {
return common.CreateObject(ctx, config)
}
// StartInstance starts a new V2Ray instance with given serialized config, and return a handle for shutting down the instance.
func StartInstance(configFormat string, configBytes []byte) (common.Closable, error) {
// StartInstance starts a new V2Ray instance with given serialized config.
func StartInstance(configFormat string, configBytes []byte) (*Instance, error) {
var mb buf.MultiBuffer
common.Must2(mb.Write(configBytes))
config, err := LoadConfig(configFormat, "", &mb)