mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-27 19:11:27 +00:00
5c366db847
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
15 lines
324 B
Go
15 lines
324 B
Go
package conf
|
|
|
|
import (
|
|
"github.com/golang/protobuf/proto"
|
|
"github.com/xtls/xray-core/app/observatory"
|
|
)
|
|
|
|
type ObservatoryConfig struct {
|
|
SubjectSelector []string `json:"subjectSelector"`
|
|
}
|
|
|
|
func (o ObservatoryConfig) Build() (proto.Message, error) {
|
|
return &observatory.Config{SubjectSelector: o.SubjectSelector}, nil
|
|
}
|