Skip to content

Commit

Permalink
Release 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jdomnitz committed Aug 11, 2024
1 parent 036d43e commit b1ada88
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TinyDNS/DNSResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public async Task<List<IPAddress>> ResolveHostV6(string hostname)
}
}
}
catch (InvalidDataException ex) { continue; } //Try the next NS
catch (InvalidDataException) { continue; } //Try the next NS
}
}
finally
Expand Down
5 changes: 5 additions & 0 deletions TinyDNS/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,10 @@ public override string ToString()
}
return sb.ToString();
}

public override int GetHashCode()
{
return base.GetHashCode() + TransactionID;
}
}
}
5 changes: 5 additions & 0 deletions TinyDNS/Records/QuestionRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,10 @@ public override string ToString()
{
return $"{string.Join('.',Name)}\t{Class}\t{Type}";
}

public override int GetHashCode()
{
return Name.GetHashCode() + (int)Class;
}
}
}
11 changes: 10 additions & 1 deletion TinyDNS/TinyDNS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@
<TargetFrameworks>net80</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.7.3</Version>
<Version>0.8.0</Version>
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Authors>jdomnitz</Authors>
<Company>SmartHomeOS and Contributors</Company>
<PackageTags>dns; dns-client; doh; mdns; secure-dns</PackageTags>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net80|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net80|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit b1ada88

Please sign in to comment.