XrayInbound class

One typed Xray input for generated configurations.

This typed model uses a single TCP/UDP port in 1–65535. Import full JSON when a Core input needs port zero, ranges, lists or a Unix listener. Native VPN preparation preserves imported inputs and adds its own managed adapter.

Implemented types

Constructors

XrayInbound({required String tag, required int port, required String protocol, String? listen, JsonMap settings = const {}, XraySniffing? sniffing, JsonMap? streamSettings, JsonMap? allocate})
Creates an input with tag, protocol and one port.
const
XrayInbound.localSocksTunnel({String tag = 'in_proxy', String listen = '127.0.0.1', int port = 10807, int userLevel = 8, String? username, String? password})
Creates a loopback SOCKS input with UDP support and HTTP/TLS/QUIC sniffing.
factory

Properties

allocate → JsonMap?
Optional Core input allocation policy passed through as supplied.
final
hashCode → int
The hash code for this object.
no setterinherited
listen → String?
Optional bind address passed to Core; null leaves the setting absent after root configuration cleanup.
final
port → int
Single listening port; toJson requires a value in 1–65535.
final
protocol → String
Core input protocol name; toJson rejects an empty string.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → JsonMap
Protocol-specific input settings; values can include credentials.
final
sniffing → XraySniffing?
Optional destination sniffing settings for routing.
final
streamSettings → JsonMap?
Optional raw input transport settings, validated by native Core.
final
tag → String
Input identifier referenced by Core routing rules.
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