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:
parent
ab803000e7
commit
22f6b100ba
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user