mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Replace DnDns with HeijdenDns
HeijdenDns seems to do a better job at querying SRV records
This commit is contained in:
parent
a344ac4101
commit
693073edfc
112 changed files with 5491 additions and 5009 deletions
38
MinecraftClient/Protocol/Dns/Records/RecordAAAA.cs
Normal file
38
MinecraftClient/Protocol/Dns/Records/RecordAAAA.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
|
||||
#region Rfc info
|
||||
/*
|
||||
2.2 AAAA data format
|
||||
|
||||
A 128 bit IPv6 address is encoded in the data portion of an AAAA
|
||||
resource record in network byte order (high-order byte first).
|
||||
*/
|
||||
#endregion
|
||||
|
||||
namespace Heijden.DNS
|
||||
{
|
||||
public class RecordAAAA : Record
|
||||
{
|
||||
public System.Net.IPAddress Address;
|
||||
|
||||
public RecordAAAA(RecordReader rr)
|
||||
{
|
||||
System.Net.IPAddress.TryParse(
|
||||
string.Format("{0:x}:{1:x}:{2:x}:{3:x}:{4:x}:{5:x}:{6:x}:{7:x}",
|
||||
rr.ReadUInt16(),
|
||||
rr.ReadUInt16(),
|
||||
rr.ReadUInt16(),
|
||||
rr.ReadUInt16(),
|
||||
rr.ReadUInt16(),
|
||||
rr.ReadUInt16(),
|
||||
rr.ReadUInt16(),
|
||||
rr.ReadUInt16()), out this.Address);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Address.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue