// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.Network; using System.Net; using System.Threading.Tasks; /// /// Resolver which always returns the provided custom ip address. /// public class CustomIpResolver : IIpAddressResolver { private readonly IPAddress _address; /// /// Initializes a new instance of the class. /// /// The address. public CustomIpResolver(IPAddress address) { this._address = address; } /// public ValueTask ResolveIPv4Async() => ValueTask.FromResult(this._address); }