소스 검색

fix StartInstance signature for mobile

Darien Raymond 7 년 전
부모
커밋
dcd26ec61f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      functions.go

+ 2 - 2
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)