Apply inbounds on nodes via Xray with Reality settings and client sync.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -140,8 +140,24 @@ type Inbound struct {
|
||||
Enabled bool `json:"enabled"` // definition enabled in profile
|
||||
SortOrder int `json:"sort_order"`
|
||||
Remark string `json:"remark"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
|
||||
// Transport / TLS / Reality / SS settings
|
||||
Path string `json:"path"`
|
||||
Host string `json:"host"`
|
||||
SNI string `json:"sni"`
|
||||
Fingerprint string `json:"fingerprint"`
|
||||
Flow string `json:"flow"`
|
||||
ALPN string `json:"alpn"`
|
||||
RealityDest string `json:"reality_dest"`
|
||||
RealityServerNames string `json:"reality_server_names"`
|
||||
RealityPrivateKey string `json:"reality_private_key"`
|
||||
RealityPublicKey string `json:"reality_public_key"`
|
||||
RealityShortID string `json:"reality_short_id"`
|
||||
SSMethod string `json:"ss_method"`
|
||||
Password string `json:"password"`
|
||||
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
|
||||
// Per-node activation when listed under a node
|
||||
NodeEnabled bool `json:"node_enabled,omitempty"`
|
||||
@@ -236,6 +252,16 @@ type SubHost struct {
|
||||
Port int `json:"port"`
|
||||
Network string `json:"network"`
|
||||
Security string `json:"security"`
|
||||
Path string `json:"path,omitempty"`
|
||||
HostHeader string `json:"host_header,omitempty"`
|
||||
SNI string `json:"sni,omitempty"`
|
||||
Fingerprint string `json:"fingerprint,omitempty"`
|
||||
Flow string `json:"flow,omitempty"`
|
||||
ALPN string `json:"alpn,omitempty"`
|
||||
PublicKey string `json:"public_key,omitempty"`
|
||||
ShortID string `json:"short_id,omitempty"`
|
||||
SSMethod string `json:"ss_method,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Address string `json:"address"`
|
||||
NodeName string `json:"node_name"`
|
||||
NodeOnline bool `json:"node_online"`
|
||||
|
||||
Reference in New Issue
Block a user