WireGuardConfig constructor

const WireGuardConfig({
  1. bool? noKernelTun,
  2. required String secretKey,
  3. List<String>? address,
  4. List<WireGuardPeerConfig>? peers,
  5. @JsonKey.new(name: 'mtu') int? mtu,
  6. @JsonKey.new(name: 'workers') int? numWorkers,
  7. List<int>? reserved,
  8. XrayTargetStrategy? domainStrategy,
})

Implementation

const factory WireGuardConfig({
  bool? noKernelTun,
  required String secretKey,
  List<String>? address,
  List<WireGuardPeerConfig>? peers,
  @JsonKey(name: 'mtu') int? mtu,
  @JsonKey(name: 'workers') int? numWorkers,
  List<int>? reserved,
  XrayTargetStrategy? domainStrategy,
}) = _WireGuardConfig;