diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index c00ac9b..e59d475 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -180,6 +180,21 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
180 | m_certNames.Add(parts[1]); | 180 | m_certNames.Add(parts[1]); |
181 | else if(entryName == "IPAddress") | 181 | else if(entryName == "IPAddress") |
182 | m_certIPs.Add(parts[1]); | 182 | m_certIPs.Add(parts[1]); |
183 | else if(entryName == "Unknown(135)") // stupid mono | ||
184 | { | ||
185 | try | ||
186 | { | ||
187 | if(parts[1].Length == 8) | ||
188 | { | ||
189 | long tmp = long.Parse(parts[1], NumberStyles.AllowHexSpecifier); | ||
190 | tmp = IPAddress.HostToNetworkOrder(tmp); | ||
191 | tmp = (long)((ulong) tmp >> 32); | ||
192 | IPAddress ia = new IPAddress(tmp); | ||
193 | m_certIPs.Add(ia.ToString()); | ||
194 | } | ||
195 | } | ||
196 | catch {} | ||
197 | } | ||
183 | } | 198 | } |
184 | } | 199 | } |
185 | m_certCN = m_cert.GetNameInfo(X509NameType.SimpleName, false); | 200 | m_certCN = m_cert.GetNameInfo(X509NameType.SimpleName, false); |
@@ -2160,7 +2175,8 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
2160 | 2175 | ||
2161 | try | 2176 | try |
2162 | { | 2177 | { |
2163 | PollServiceRequestManager.Stop(); | 2178 | if(PollServiceRequestManager != null) |
2179 | PollServiceRequestManager.Stop(); | ||
2164 | 2180 | ||
2165 | m_httpListener2.ExceptionThrown -= httpServerException; | 2181 | m_httpListener2.ExceptionThrown -= httpServerException; |
2166 | //m_httpListener2.DisconnectHandler = null; | 2182 | //m_httpListener2.DisconnectHandler = null; |