diff options
Diffstat (limited to 'xray/inbound.go')
| -rw-r--r-- | xray/inbound.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xray/inbound.go b/xray/inbound.go index 5a328f31..cbe4392d 100644 --- a/xray/inbound.go +++ b/xray/inbound.go @@ -6,6 +6,8 @@ import ( "github.com/mhsanaei/3x-ui/v2/util/json_util" ) +// InboundConfig represents an Xray inbound configuration. +// It defines how Xray accepts incoming connections including protocol, port, and settings. type InboundConfig struct { Listen json_util.RawMessage `json:"listen"` // listen cannot be an empty string Port int `json:"port"` @@ -16,6 +18,7 @@ type InboundConfig struct { Sniffing json_util.RawMessage `json:"sniffing"` } +// Equals compares two InboundConfig instances for deep equality. func (c *InboundConfig) Equals(other *InboundConfig) bool { if !bytes.Equal(c.Listen, other.Listen) { return false |
