aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Util.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 2a21221..09bf029 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -362,6 +362,16 @@ namespace OpenSim.Framework
362 } 362 }
363 363
364 /// <summary> 364 /// <summary>
365 /// Converts a URL to a IPAddress
366 /// </summary>
367 /// <param name="url">URL Standard Format</param>
368 /// <returns>A resolved IP Address</returns>
369 public static IPAddress GetHostFromURL(string url)
370 {
371 return GetHostFromDNS(url.Split(new char[] {'/', ':'})[3]);
372 }
373
374 /// <summary>
365 /// Returns a IP address from a specified DNS, favouring IPv4 addresses. 375 /// Returns a IP address from a specified DNS, favouring IPv4 addresses.
366 /// </summary> 376 /// </summary>
367 /// <param name="dnsAddress">DNS Hostname</param> 377 /// <param name="dnsAddress">DNS Hostname</param>