aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 35efa02..0128735 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -517,6 +517,20 @@ namespace OpenSim.Framework
517 return null; 517 return null;
518 } 518 }
519 519
520 public static Uri GetURI(string protocol, string hostname, int port, string path)
521 {
522 return new UriBuilder(protocol, hostname, port, path).Uri;
523 }
524
525 /// <summary>
526 /// Gets a list of all local system IP addresses
527 /// </summary>
528 /// <returns></returns>
529 public static IPAddress[] GetLocalHosts()
530 {
531 return Dns.GetHostAddresses(Dns.GetHostName());
532 }
533
520 public static IPAddress GetLocalHost() 534 public static IPAddress GetLocalHost()
521 { 535 {
522 string dnsAddress = "localhost"; 536 string dnsAddress = "localhost";