mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
fix StartInstance signature for mobile
This commit is contained in:
parent
c3170dfc8e
commit
dcd26ec61f
@ -16,8 +16,8 @@ func CreateObject(v *Instance, config interface{}) (interface{}, error) {
|
|||||||
return common.CreateObject(ctx, config)
|
return common.CreateObject(ctx, config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// StartInstance starts a new V2Ray instance with given serialized config, and return a handle for shutting down the instance.
|
// StartInstance starts a new V2Ray instance with given serialized config.
|
||||||
func StartInstance(configFormat string, configBytes []byte) (common.Closable, error) {
|
func StartInstance(configFormat string, configBytes []byte) (*Instance, error) {
|
||||||
var mb buf.MultiBuffer
|
var mb buf.MultiBuffer
|
||||||
common.Must2(mb.Write(configBytes))
|
common.Must2(mb.Write(configBytes))
|
||||||
config, err := LoadConfig(configFormat, "", &mb)
|
config, err := LoadConfig(configFormat, "", &mb)
|
||||||
|
Loading…
Reference in New Issue
Block a user