diff options
author | Adam Frisby | 2008-08-30 12:58:54 +0000 |
---|---|---|
committer | Adam Frisby | 2008-08-30 12:58:54 +0000 |
commit | 50a62145ad554277281a3166de0a29353adb07c4 (patch) | |
tree | 1fe7c14665d95c530f26b861ce301cdd5a757c52 /OpenSim/Framework/Util.cs | |
parent | * Added "File Asset Client" to OpenSim Asset Server-types. (diff) | |
download | opensim-SC-50a62145ad554277281a3166de0a29353adb07c4.zip opensim-SC-50a62145ad554277281a3166de0a29353adb07c4.tar.gz opensim-SC-50a62145ad554277281a3166de0a29353adb07c4.tar.bz2 opensim-SC-50a62145ad554277281a3166de0a29353adb07c4.tar.xz |
* Initial inspection of UserLoginService.cs, cleaned up source code slightly to make it easier to work with.
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 10 |
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> |