Skip to content

Commit

Permalink
solve TestXrayCore_GenerateConfig failing
Browse files Browse the repository at this point in the history
  • Loading branch information
omid-official committed Sep 5, 2024
1 parent e2ee250 commit 4d8561a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions infra/conf/xray.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,23 +387,23 @@ type Config struct {
// Port of this Point server.
// Deprecated: Port exists for historical compatibility
// and should not be used.
Port uint16 `json:"-"`
Port uint16 `json:"port,omitempty"`

// Deprecated: InboundConfig exists for historical compatibility
// and should not be used.
InboundConfig *InboundDetourConfig `json:"-"`
InboundConfig *InboundDetourConfig `json:"inbound,omitempty"`

// Deprecated: OutboundConfig exists for historical compatibility
// and should not be used.
OutboundConfig *OutboundDetourConfig `json:"-"`
OutboundConfig *OutboundDetourConfig `json:"outbound,omitempty"`

// Deprecated: InboundDetours exists for historical compatibility
// and should not be used.
InboundDetours []InboundDetourConfig `json:"-"`
InboundDetours []InboundDetourConfig `json:"inboundDetour,omitempty"`

// Deprecated: OutboundDetours exists for historical compatibility
// and should not be used.
OutboundDetours []OutboundDetourConfig `json:"-"`
OutboundDetours []OutboundDetourConfig `json:"outboundDetour,omitempty"`

LogConfig *LogConfig `json:"log,omitempty"`
RouterConfig *RouterConfig `json:"routing,omitempty"`
Expand Down

0 comments on commit 4d8561a

Please sign in to comment.