@@ -329,16 +329,32 @@ func (c *StatsConfig) Build() (*stats.Config, error) {
329329}
330330
331331type Config struct {
332- Port uint16 `json:"port"` // Port of this Point server. Deprecated.
332+ // Port of this Point server.
333+ // Deprecated: Port exists for historical compatibility
334+ // and should not be used.
335+ Port uint16 `json:"port"`
336+
337+ // Deprecated: InboundConfig exists for historical compatibility
338+ // and should not be used.
339+ InboundConfig * InboundDetourConfig `json:"inbound"`
340+
341+ // Deprecated: OutboundConfig exists for historical compatibility
342+ // and should not be used.
343+ OutboundConfig * OutboundDetourConfig `json:"outbound"`
344+
345+ // Deprecated: InboundDetours exists for historical compatibility
346+ // and should not be used.
347+ InboundDetours []InboundDetourConfig `json:"inboundDetour"`
348+
349+ // Deprecated: OutboundDetours exists for historical compatibility
350+ // and should not be used.
351+ OutboundDetours []OutboundDetourConfig `json:"outboundDetour"`
352+
333353 LogConfig * LogConfig `json:"log"`
334354 RouterConfig * RouterConfig `json:"routing"`
335355 DNSConfig * DNSConfig `json:"dns"`
336356 InboundConfigs []InboundDetourConfig `json:"inbounds"`
337357 OutboundConfigs []OutboundDetourConfig `json:"outbounds"`
338- InboundConfig * InboundDetourConfig `json:"inbound"` // Deprecated.
339- OutboundConfig * OutboundDetourConfig `json:"outbound"` // Deprecated.
340- InboundDetours []InboundDetourConfig `json:"inboundDetour"` // Deprecated.
341- OutboundDetours []OutboundDetourConfig `json:"outboundDetour"` // Deprecated.
342358 Transport * TransportConfig `json:"transport"`
343359 Policy * PolicyConfig `json:"policy"`
344360 API * APIConfig `json:"api"`
0 commit comments