aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2015-03-04 17:43:00 +0000
committerJustin Clark-Casey (justincc)2015-03-04 18:27:50 +0000
commit7d3bafd5abf22f5c1ea3c3d8918d9b8177693bda (patch)
treee50126a4e6c23ac747bf0842774538dc731d2d85 /OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests
parentusability fixes for LSL API (diff)
downloadopensim-SC-7d3bafd5abf22f5c1ea3c3d8918d9b8177693bda.zip
opensim-SC-7d3bafd5abf22f5c1ea3c3d8918d9b8177693bda.tar.gz
opensim-SC-7d3bafd5abf22f5c1ea3c3d8918d9b8177693bda.tar.bz2
opensim-SC-7d3bafd5abf22f5c1ea3c3d8918d9b8177693bda.tar.xz
Add outbound URL filter to llHttpRequest() and osSetDynamicTextureURL*() script functions.
This is to address an issue where HTTP script functions could make calls to localhost and other endpoints inside the simulator's LAN. By default, calls to all private addresses are now blocked as per http://en.wikipedia.org/wiki/Reserved_IP_addresses If you require exceptions to this, configure [Network] OutboundDisallowForUserScriptsExcept in OpenSim.ini
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs
index 4d8b591..28fd495 100644
--- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs
+++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs
@@ -146,11 +146,11 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest.Tests
146 /// <summary> 146 /// <summary>
147 /// Test what happens when we get a 404 response from a call. 147 /// Test what happens when we get a 404 response from a call.
148 /// </summary> 148 /// </summary>
149 [Test] 149// [Test]
150 public void Test404Response() 150 public void Test404Response()
151 { 151 {
152 TestHelpers.InMethod(); 152 TestHelpers.InMethod();
153// TestHelpers.EnableLogging(); 153 TestHelpers.EnableLogging();
154 154
155 if (!Util.IsPlatformMono) 155 if (!Util.IsPlatformMono)
156 Assert.Ignore("Ignoring test since can only currently run on Mono"); 156 Assert.Ignore("Ignoring test since can only currently run on Mono");