diff --git a/config.json b/config.json index 4a1ed30..564028d 100644 --- a/config.json +++ b/config.json @@ -46,7 +46,7 @@ "/.*\\.jpg$/", "/.*\\.webp$/" ], - "enableIPSpoofing": true, + "enableIPSpoofing": false, "secure": false, "sni": {}, "disableNonEncryptedServer": false, diff --git a/index.html b/index.html index be1e171..42407ca 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.2 + SVR.JS 3.14.3 -

Welcome to SVR.JS 3.14.2

+

Welcome to SVR.JS 3.14.3



@@ -68,7 +68,7 @@     "/.*\\.jpg$/",
    "/.*\\.webp$/"
  ],
-   "enableIPSpoofing": true,
+   "enableIPSpoofing": false,
  "secure": false,
  "sni": {},
  "disableNonEncryptedServer": false,
@@ -86,7 +86,7 @@

Changes:


Tests
diff --git a/licenses/index.html b/licenses/index.html index c2b1a5a..cca5457 100644 --- a/licenses/index.html +++ b/licenses/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.2 Licenses + SVR.JS 3.14.3 Licenses -

SVR.JS 3.14.2 Licenses

-

SVR.JS 3.14.2

+

SVR.JS 3.14.3 Licenses

+

SVR.JS 3.14.3

MIT License

@@ -37,7 +37,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-

Packages used by SVR.JS 3.14.2

+

Packages used by SVR.JS 3.14.3

License: MIT
diff --git a/logo.png b/logo.png index e2583c0..b14d5d9 100644 Binary files a/logo.png and b/logo.png differ diff --git a/svr.js b/svr.js index 417b512..52ec115 100644 --- a/svr.js +++ b/svr.js @@ -69,7 +69,7 @@ function deleteFolderRecursive(path) { } var os = require("os"); -var version = "3.14.2"; +var version = "3.14.3"; var singlethreaded = false; if (process.versions) process.versions.svrjs = version; // Inject SVR.JS into process.versions @@ -3332,7 +3332,7 @@ if (!cluster.isPrimary) { if (typeof URL !== "undefined" && url.Url) { try { // Create a new URL object using the provided URI and base URL - var uobject = new URL(uri, "http" + (req.socket.encrypted ? "s" : "") + "://" + (req.headers.host ? req.headers.host : (domain ? domain : "unknown.invalid"))); + var uobject = new URL(uri.replace(/^\/{2,}/,"/"), "http" + (req.socket.encrypted ? "s" : "") + "://" + (req.headers.host ? req.headers.host : (domain ? domain : "unknown.invalid"))); // Create a new URL object (similar to deprecated url.Url) var nuobject = new url.Url(); diff --git a/tests.html b/tests.html index cb08f76..2c44581 100644 --- a/tests.html +++ b/tests.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.2 Tests + SVR.JS 3.14.3 Tests -

SVR.JS 3.14.2 Tests

+

SVR.JS 3.14.3 Tests

Directory (without trailing slash)

Directory (with query)