diff options
Diffstat (limited to 'xray/config.go')
| -rw-r--r-- | xray/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xray/config.go b/xray/config.go index b10592d0..2b4a6673 100644 --- a/xray/config.go +++ b/xray/config.go @@ -6,6 +6,8 @@ import ( "github.com/mhsanaei/3x-ui/v2/util/json_util" ) +// Config represents the complete Xray configuration structure. +// It contains all sections of an Xray config file including inbounds, outbounds, routing, etc. type Config struct { LogConfig json_util.RawMessage `json:"log"` RouterConfig json_util.RawMessage `json:"routing"` @@ -23,6 +25,7 @@ type Config struct { Metrics json_util.RawMessage `json:"metrics"` } +// Equals compares two Config instances for deep equality. func (c *Config) Equals(other *Config) bool { if len(c.InboundConfigs) != len(other.InboundConfigs) { return false |
