1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 01:40:44 +00:00

fix incorrect service name

This commit is contained in:
Shelikhoo 2021-04-12 01:18:20 +01:00
parent d16f00cc51
commit 726f023a5d
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -1,7 +1,6 @@
package conf
import (
"github.com/v2fly/v2ray-core/v4/app/observatory"
"strings"
"github.com/jhump/protoreflect/desc"
@ -9,6 +8,7 @@ import (
"github.com/v2fly/v2ray-core/v4/app/commander"
loggerservice "github.com/v2fly/v2ray-core/v4/app/log/command"
observatoryservice "github.com/v2fly/v2ray-core/v4/app/observatory/command"
handlerservice "github.com/v2fly/v2ray-core/v4/app/proxyman/command"
statsservice "github.com/v2fly/v2ray-core/v4/app/stats/command"
"github.com/v2fly/v2ray-core/v4/common/serial"
@ -36,7 +36,7 @@ func (c *APIConfig) Build() (*commander.Config, error) {
case "statsservice":
services = append(services, serial.ToTypedMessage(&statsservice.Config{}))
case "observatoryservice":
services = append(services, serial.ToTypedMessage(&observatory.Config{}))
services = append(services, serial.ToTypedMessage(&observatoryservice.Config{}))
default:
if !strings.HasPrefix(s, "#") {
continue