aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-02-06 21:56:50 +0000
committerJustin Clarke Casey2009-02-06 21:56:50 +0000
commita6b21a3b83d471eabacb92c9c2d9a575e4824d5d (patch)
treeff2266f170c210499ab45030ff6c9ad55c98ae96 /OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs
parent* Removed superflous (and circular) ref to OpenSim.Region.Framework (diff)
downloadopensim-SC-a6b21a3b83d471eabacb92c9c2d9a575e4824d5d.zip
opensim-SC-a6b21a3b83d471eabacb92c9c2d9a575e4824d5d.tar.gz
opensim-SC-a6b21a3b83d471eabacb92c9c2d9a575e4824d5d.tar.bz2
opensim-SC-a6b21a3b83d471eabacb92c9c2d9a575e4824d5d.tar.xz
* minor: Apply second patch from http://opensimulator.org/mantis/view.php?id=3089
* This adds more explanation for the new proxy settings in OpenSim.ini.example * Also does some formatting correction * I did some additional reformatting on top of that
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs32
1 files changed, 18 insertions, 14 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs b/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs
index af78c36..0112ee6 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs
@@ -43,9 +43,8 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL
43 private Scene m_scene; 43 private Scene m_scene;
44 private IDynamicTextureManager m_textureManager; 44 private IDynamicTextureManager m_textureManager;
45 45
46 private string m_proxyurl = ""; 46 private string m_proxyurl = "";
47 private string m_proxyexcepts = ""; 47 private string m_proxyexcepts = "";
48
49 48
50 #region IDynamicTextureRender Members 49 #region IDynamicTextureRender Members
51 50
@@ -95,8 +94,9 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL
95 { 94 {
96 m_scene = scene; 95 m_scene = scene;
97 } 96 }
98 m_proxyurl = config.Configs["Startup"].GetString("HttpProxy"); 97
99 m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions"); 98 m_proxyurl = config.Configs["Startup"].GetString("HttpProxy");
99 m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions");
100 } 100 }
101 101
102 public void PostInitialise() 102 public void PostInitialise()
@@ -127,15 +127,19 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL
127 private void MakeHttpRequest(string url, UUID requestID) 127 private void MakeHttpRequest(string url, UUID requestID)
128 { 128 {
129 WebRequest request = HttpWebRequest.Create(url); 129 WebRequest request = HttpWebRequest.Create(url);
130 if (m_proxyurl.Length > 0) 130
131 { 131 if (m_proxyurl != null && m_proxyurl.Length > 0)
132 if (m_proxyexcepts.Length > 0) { 132 {
133 string[] elist = m_proxyexcepts.Split(';'); 133 if (m_proxyexcepts != null && m_proxyexcepts.Length > 0)
134 request.Proxy = new WebProxy(m_proxyurl,true,elist); 134 {
135 } else { 135 string[] elist = m_proxyexcepts.Split(';');
136 request.Proxy = new WebProxy(m_proxyurl,true); 136 request.Proxy = new WebProxy(m_proxyurl, true, elist);
137 } 137 }
138 } 138 else
139 {
140 request.Proxy = new WebProxy(m_proxyurl, true);
141 }
142 }
139 143
140 RequestState state = new RequestState((HttpWebRequest) request, requestID); 144 RequestState state = new RequestState((HttpWebRequest) request, requestID);
141 // IAsyncResult result = request.BeginGetResponse(new AsyncCallback(HttpRequestReturn), state); 145 // IAsyncResult result = request.BeginGetResponse(new AsyncCallback(HttpRequestReturn), state);