From d1e07954c51229c2d74756685c33cd70c67fa2ef Mon Sep 17 00:00:00 2001 From: rammiah Date: Wed, 11 Jun 2025 18:42:41 +0800 Subject: feat: support metrics config --- xray/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xray') diff --git a/xray/config.go b/xray/config.go index 67ff7d95..a246b845 100644 --- a/xray/config.go +++ b/xray/config.go @@ -20,6 +20,7 @@ type Config struct { FakeDNS json_util.RawMessage `json:"fakedns"` Observatory json_util.RawMessage `json:"observatory"` BurstObservatory json_util.RawMessage `json:"burstObservatory"` + Metrics json_util.RawMessage `json:"metrics"` } func (c *Config) Equals(other *Config) bool { @@ -61,5 +62,8 @@ func (c *Config) Equals(other *Config) bool { if !bytes.Equal(c.FakeDNS, other.FakeDNS) { return false } + if !bytes.Equal(c.Metrics, other.Metrics) { + return false + } return true } -- cgit v1.2.3