XrayConfig class
Annotations
@JsonSerializable.new(includeIfNull: false, ignoreUnannotated: true)
Constructors
XrayConfig ({ApiConfig ? api , LogConfig ? log , VersionConfig ? version , DnsConfig ? dns , RoutingConfig ? routing , PolicyConfig ? policy , List <Inbound > inbounds = const [] , List <Outbound > outbounds = const [] , TransportConfig ? transport , StatsConfig ? stats , ReverseConfig ? reverse , List <FakeDnsConfig > ? fakedns , MetricsConfig ? metrics , ObservatoryConfig ? observatory , BurstObservatoryConfig ? burstObservatory })
XrayConfig.fromJson (Map <String , dynamic > json )
factory
Properties
api
↔ ApiConfig ?
API interface configuration provides a set of APIs based on gRPC for remote invocation.
getter/setter pair
burstObservatory
↔ BurstObservatoryConfig ?
The connection monitoring component uses HTTP pings to check the connection status of outbound proxies.
getter/setter pair
dns
↔ DnsConfig ?
Config for Built-in DNS server.
getter/setter pair
fakedns
↔ List <FakeDnsConfig > ?
Setting up FakeDNS. Can be used in conjunction with transparent proxying to obtain real domain names.
getter/setter pair
hashCode
→ int
The hash code for this object.
no setter inherited
inbounds
↔ List <Inbound >
An array where each element represents an incoming connection configuration.
getter/setter pair
log
↔ LogConfig ?
Log configuration controls how Xray outputs logs.
getter/setter pair
metrics
↔ MetricsConfig ?
An easier (and hopefully better) way to export statistics.
getter/setter pair
observatory
↔ ObservatoryConfig ?
The connection monitoring component uses HTTP pings to check the connection status of outbound proxies.
getter/setter pair
outbounds
↔ List <Outbound >
An array where each element represents an outgoing connection configuration.
getter/setter pair
policy
↔ PolicyConfig ?
A local policy that allows you to configure different user levels and corresponding policies.
getter/setter pair
reverse
↔ ReverseConfig ?
A reverse proxy can redirect traffic from a server to a client, that is, perform reverse traffic forwarding.
getter/setter pair
routing
↔ RoutingConfig ?
Configures routing. Specify rules to route connections through different outbounds.
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
stats
↔ StatsConfig ?
Used to configure the collection of traffic statistics.
getter/setter pair
transport
↔ TransportConfig ?
Transport is the way the current Xray node interacts with other nodes.
getter/setter pair
version
↔ VersionConfig ?
It controls the version on which this config can run. When sharing config files, this prevents accidental execution on unwanted client versions. During execution, the client will check if its current version meets this requirement. Support of v25.8.3+.
getter/setter pair