1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

fix v4 json loader MultiObservatoryConfig

This commit is contained in:
Shelikhoo 2021-06-19 12:34:58 +01:00
parent ab803000e7
commit 22f6b100ba
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -6,6 +6,7 @@ import (
"github.com/v2fly/v2ray-core/v4/app/observatory/burst"
"github.com/v2fly/v2ray-core/v4/app/observatory/multiObservatory"
"github.com/v2fly/v2ray-core/v4/common/serial"
"github.com/v2fly/v2ray-core/v4/common/taggedfeatures"
"github.com/v2fly/v2ray-core/v4/app/observatory"
"github.com/v2fly/v2ray-core/v4/infra/conf/cfgcommon/duration"
@ -46,7 +47,7 @@ type MultiObservatoryConfig struct {
}
func (o *MultiObservatoryConfig) Build() (proto.Message, error) {
ret := &multiObservatory.Config{}
ret := &multiObservatory.Config{Holders: &taggedfeatures.Config{Features: make(map[string]*serial.TypedMessage)}}
for _, v := range o.Observers {
switch v.MemberType {
case "burst":