Skip to content

Commit

Permalink
Better use of DnsLabels throughout the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanedwardes committed Nov 20, 2023
1 parent fb2ac49 commit 8f5827b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ae.Dns.Protocol/Records/DnsServiceBindingResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public override string ToString()
}
else
{
parts.Add(string.Join(".", TargetName) + '.');
parts.Add(TargetName + ".");
}

// Matches what is supported by dig
Expand Down
2 changes: 1 addition & 1 deletion src/Ae.Dns.Protocol/Records/DnsSoaResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void ReadBytes(ReadOnlyMemory<byte> bytes, ref int offset, int length)
}

/// <inheritdoc/>
public override string ToString() => string.Join(".", MName);
public override string ToString() => MName.ToString();

/// <inheritdoc/>
public void WriteBytes(Memory<byte> bytes, ref int offset)
Expand Down

0 comments on commit 8f5827b

Please sign in to comment.