XrayOutbound class

One typed Xray output, with optional transport and protocol settings.

This helper does not prove that a protocol or transport is supported by the selected platform. Credential and encryption values are passed to Core.

Implemented types

Constructors

XrayOutbound({required String tag, required String protocol, JsonMap settings = const {}, XrayStreamSettings? streamSettings, JsonMap? proxySettings, String? sendThrough, JsonMap? mux})
Creates an output with tag and protocol.
const
XrayOutbound.blackhole()
Creates the generated blackhole output used to reject matching traffic.
factory
XrayOutbound.direct()
Creates the generated direct Freedom output using AsIs DNS strategy.
factory
XrayOutbound.proxy({required String protocol, required JsonMap settings, required XrayStreamSettings streamSettings})
Creates the generated proxy output with mux disabled.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
mux → JsonMap?
Optional Core multiplexing settings; the proxy factory disables mux.
final
protocol → String
Core output protocol name; toJson rejects an empty string.
final
proxySettings → JsonMap?
Legacy outbound-chaining fields passed to Core.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendThrough → String?
Optional source address requested for this output; platform protection may reject a value incompatible with its selected physical path.
final
settings → JsonMap
Protocol-specific settings, potentially including server credentials.
final
streamSettings → XrayStreamSettings?
Optional transport, TLS/Reality and socket settings.
final
tag → String
Output identifier used by routing rules and chained socket policies.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JsonMap
Returns this value as JSON fields.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited