diff options
author | UbitUmarov | 2017-05-30 15:34:22 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-30 15:34:22 +0100 |
commit | 79b2926ce116a714eca7609eb409f93c504f0b71 (patch) | |
tree | 9b9150c7e2dbb7a6a5e591b6523f21060a176756 | |
parent | put back soft http close (diff) | |
download | opensim-SC-79b2926ce116a714eca7609eb409f93c504f0b71.zip opensim-SC-79b2926ce116a714eca7609eb409f93c504f0b71.tar.gz opensim-SC-79b2926ce116a714eca7609eb409f93c504f0b71.tar.bz2 opensim-SC-79b2926ce116a714eca7609eb409f93c504f0b71.tar.xz |
do another dns request via new cache. My problems bf wheren't mono after all, but ubuntu systemd.resolver and google public dns, killing one and not using other did improve dns a lot
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs index 895020c..11fc513 100644 --- a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs | |||
@@ -35,6 +35,7 @@ using log4net; | |||
35 | using Mono.Addins; | 35 | using Mono.Addins; |
36 | using Nini.Config; | 36 | using Nini.Config; |
37 | using OpenMetaverse; | 37 | using OpenMetaverse; |
38 | using OpenSim.Framework; | ||
38 | using OpenSim.Framework.Servers; | 39 | using OpenSim.Framework.Servers; |
39 | using OpenSim.Framework.Servers.HttpServer; | 40 | using OpenSim.Framework.Servers.HttpServer; |
40 | using OpenSim.Region.Framework.Interfaces; | 41 | using OpenSim.Region.Framework.Interfaces; |
@@ -146,23 +147,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp | |||
146 | } | 147 | } |
147 | 148 | ||
148 | IPAddress ia = null; | 149 | IPAddress ia = null; |
149 | try | 150 | ia = Util.GetHostFromDNS(ExternalHostNameForLSL); |
150 | { | ||
151 | foreach (IPAddress Adr in Dns.GetHostAddresses(ExternalHostNameForLSL)) | ||
152 | { | ||
153 | if (Adr.AddressFamily == AddressFamily.InterNetwork || | ||
154 | Adr.AddressFamily == AddressFamily.InterNetworkV6) // ipv6 will most likely smoke | ||
155 | { | ||
156 | ia = Adr; | ||
157 | break; | ||
158 | } | ||
159 | } | ||
160 | } | ||
161 | catch | ||
162 | { | ||
163 | ia = null; | ||
164 | } | ||
165 | |||
166 | if (ia == null) | 151 | if (ia == null) |
167 | { | 152 | { |
168 | m_ErrorStr = "Could not resolve ExternalHostNameForLSL, HTTP listener for LSL disabled"; | 153 | m_ErrorStr = "Could not resolve ExternalHostNameForLSL, HTTP listener for LSL disabled"; |