diff options
author | Justin Clarke Casey | 2008-03-22 20:44:15 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-03-22 20:44:15 +0000 |
commit | 61ae75f3640a9861fbf22ae57b748710080631e7 (patch) | |
tree | c4b27f742df1b691c85bb777c63f3be30a529029 /OpenSim/Framework/RegionInfo.cs | |
parent | * Downgrade 'texture not found' message to DEBUG and stop putting out 'alread... (diff) | |
download | opensim-SC-61ae75f3640a9861fbf22ae57b748710080631e7.zip opensim-SC-61ae75f3640a9861fbf22ae57b748710080631e7.tar.gz opensim-SC-61ae75f3640a9861fbf22ae57b748710080631e7.tar.bz2 opensim-SC-61ae75f3640a9861fbf22ae57b748710080631e7.tar.xz |
* Catch the occasional resolution exception that comes out of SceneCommunicationService.EnableChildAgents so we can see what hostname is failing
Diffstat (limited to 'OpenSim/Framework/RegionInfo.cs')
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index 76ae1ba..b5d6869 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -38,6 +38,9 @@ namespace OpenSim.Framework | |||
38 | [Serializable] | 38 | [Serializable] |
39 | public class SimpleRegionInfo | 39 | public class SimpleRegionInfo |
40 | { | 40 | { |
41 | // private static readonly log4net.ILog m_log | ||
42 | // = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
43 | |||
41 | public SimpleRegionInfo() | 44 | public SimpleRegionInfo() |
42 | { | 45 | { |
43 | } | 46 | } |
@@ -100,6 +103,11 @@ namespace OpenSim.Framework | |||
100 | 103 | ||
101 | public string RemotingAddress; | 104 | public string RemotingAddress; |
102 | 105 | ||
106 | /// <value> | ||
107 | /// This accessor can throw all the exceptions that Dns.GetHostAddresses can throw. | ||
108 | /// | ||
109 | /// XXX Isn't this really doing too much to be a simple getter, rather than an explict method? | ||
110 | /// </value> | ||
103 | public IPEndPoint ExternalEndPoint | 111 | public IPEndPoint ExternalEndPoint |
104 | { | 112 | { |
105 | get | 113 | get |
@@ -114,8 +122,7 @@ namespace OpenSim.Framework | |||
114 | 122 | ||
115 | // Reset for next check | 123 | // Reset for next check |
116 | ia = null; | 124 | ia = null; |
117 | 125 | ||
118 | // New method favors IPv4 | ||
119 | foreach (IPAddress Adr in Dns.GetHostAddresses(m_externalHostName)) | 126 | foreach (IPAddress Adr in Dns.GetHostAddresses(m_externalHostName)) |
120 | { | 127 | { |
121 | if (ia == null) | 128 | if (ia == null) |