OutboundDetourConfig.fromProtocol constructor
OutboundDetourConfig.fromProtocol({
- required XrayOutboundProtocol protocol,
- String? sendThrough,
- String? tag,
- XrayOutboundSettings? settings,
- StreamConfig? streamSettings,
- ProxyConfig? proxySettings,
- MuxConfig? mux,
- XrayTargetStrategy? targetStrategy,
Implementation
factory OutboundDetourConfig.fromProtocol({
required XrayOutboundProtocol protocol,
String? sendThrough,
String? tag,
XrayOutboundSettings? settings,
StreamConfig? streamSettings,
ProxyConfig? proxySettings,
MuxConfig? mux,
XrayTargetStrategy? targetStrategy,
}) => OutboundDetourConfig(
protocol: protocol.toJson(),
sendThrough: sendThrough,
tag: tag,
settings: settings,
streamSettings: streamSettings,
proxySettings: proxySettings,
mux: mux,
targetStrategy: targetStrategy,
);