mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-26 03:55:26 -05:00
refactor multibuffer
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
"v2ray.com/core"
|
||||
"v2ray.com/core/common"
|
||||
"v2ray.com/core/common/buf"
|
||||
"v2ray.com/core/common/platform/ctlcmd"
|
||||
)
|
||||
|
||||
@@ -19,7 +20,9 @@ func init() {
|
||||
if err != nil {
|
||||
return nil, newError("failed to execute v2ctl to convert config file.").Base(err).AtWarning()
|
||||
}
|
||||
return core.LoadConfig("protobuf", "", &jsonContent)
|
||||
return core.LoadConfig("protobuf", "", &buf.MultiBufferContainer{
|
||||
MultiBuffer: jsonContent,
|
||||
})
|
||||
},
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user