diff --git a/tools/malwarejail/env/web/browser.js b/tools/malwarejail/env/web/browser.js index 5646079e..13b2fec9 100644 --- a/tools/malwarejail/env/web/browser.js +++ b/tools/malwarejail/env/web/browser.js @@ -29,6 +29,8 @@ function run_data_function(url, data) { try { if (is_domain_geo(url)) { data(domain_geo_response); + } else if (url.indexOf("proxy") !== -1) { + data("http://example.com/"); } else { data(); } diff --git a/tools/malwarejail/env/web/web.js b/tools/malwarejail/env/web/web.js index a443aad9..707be916 100644 --- a/tools/malwarejail/env/web/web.js +++ b/tools/malwarejail/env/web/web.js @@ -1211,6 +1211,10 @@ fetch = function (url) { if (is_domain_geo(url)) { var response = new Response(JSON.stringify(domain_geo_response)); return response; + } + else if (url.indexOf("proxy") !== -1) { + var response = new Response("http://example.com/"); + return response; } else { return new Response(); }