diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-09-20 10:35:50 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-09-20 10:35:50 +0300 |
| commit | 6ced549deaecb42b9bb93ea9efcb4c1bbaabe8a4 (patch) | |
| tree | 28d8d82530476cf607e4d05ca189ae05868711e6 /xray/inbound.go | |
| parent | f60682a6b7cb749fee403c84e2587c3ad7e7ced0 (diff) | |
docs: add comments for all functions
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 |
