let Util.GetHostFromDNS do its job if name is a ip

This commit is contained in:
UbitUmarov
2020-09-23 19:52:23 +01:00
parent c36b9bfef6
commit f1e9d5a878

View File

@@ -109,7 +109,7 @@ namespace OpenSim.Framework
URL = "http://" + Host + ":80/";
}
if (withDNSResolve && URLType == UriHostNameType.Dns)
if (withDNSResolve)
{
IPAddress ip = Util.GetHostFromDNS(host);
if (ip != null)