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.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 0128735..ee47e0f 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -546,7 +546,15 @@ namespace OpenSim.Framework
546 } 546 }
547 547
548 if (hosts.Length > 0) 548 if (hosts.Length > 0)
549 {
550 foreach (IPAddress host in hosts)
551 {
552 if(host.AddressFamily == AddressFamily.InterNetwork)
553 return host;
554 }
555 // Well all else failed...
549 return hosts[0]; 556 return hosts[0];
557 }
550 558
551 return null; 559 return null;
552 } 560 }