Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Default must static.
Browse files Browse the repository at this point in the history
  • Loading branch information
enclave-alistair committed Dec 20, 2022
1 parent 2cb4deb commit 48073db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Enclave.ARSoft.Tools.Net/Dns/DnsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ namespace ARSoft.Tools.Net.Dns
/// </summary>
public class DnsClient : DnsClientBase
{
private DnsClient _defaultClient;
private static DnsClient _defaultClient;

/// <summary>
/// Provides a default client.
/// </summary>
public DnsClient Default => _defaultClient ??= new DnsClient(GetLocalConfiguredDnsServers(), 10000) { IsResponseValidationEnabled = true };
public static DnsClient Default => _defaultClient ??= new DnsClient(GetLocalConfiguredDnsServers(), 10000) { IsResponseValidationEnabled = true };

/// <summary>
/// Gets or sets a value indicationg whether queries can be sent using UDP.
Expand Down

0 comments on commit 48073db

Please sign in to comment.