OutboundDetourConfig.fromProtocol constructor

OutboundDetourConfig.fromProtocol({
  1. required XrayOutboundProtocol protocol,
  2. String? sendThrough,
  3. String? tag,
  4. XrayOutboundSettings? settings,
  5. StreamConfig? streamSettings,
  6. ProxyConfig? proxySettings,
  7. MuxConfig? mux,
  8. 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,
    );