OutboundDetourConfig.dns constructor

OutboundDetourConfig.dns({
  1. required DNSOutboundConfig settings,
  2. String? tag,
  3. String? sendThrough,
  4. StreamConfig? streamSettings,
  5. ProxyConfig? proxySettings,
  6. MuxConfig? mux,
  7. XrayTargetStrategy? targetStrategy,
})

Implementation

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