From dcd26ec61fdc06ffc2ee1d8c793c3c8477d1de59 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 11 Oct 2018 23:36:38 +0200 Subject: [PATCH] fix StartInstance signature for mobile --- functions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.go b/functions.go index 48b37b522..bea82dccd 100644 --- a/functions.go +++ b/functions.go @@ -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)