//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.Network;
using System.Net;
///
/// Resolves the own ip address by resolving the local host name to get the local over DNS.
///
public class LocalIpResolver : HostNameIpResolver
{
///
/// Initializes a new instance of the class.
///
public LocalIpResolver()
: base(Dns.GetHostName())
{
}
///
public override async ValueTask ResolveIPv4Async()
{
return await this.ResolveAsync().ConfigureAwait(false)
?? LoopbackIpResolver.LoopbackAddress;
}
}