copyWith method

SecurityConfig copyWith({
  1. bool? blockVpn,
  2. bool? detectDnsHijack,
})

Creates a copy with updated security settings.

  • blockVpn: If true, VPN interfaces will be flagged.
  • detectDnsHijack: If true, performs active DNS spoofing checks.

Implementation

SecurityConfig copyWith({
  bool? blockVpn,
  bool? detectDnsHijack,
}) {
  return SecurityConfig(
    blockVpn: blockVpn ?? this.blockVpn,
    detectDnsHijack: detectDnsHijack ?? this.detectDnsHijack,
  );
}