diff --git a/index.html b/index.html index 8b79ee2..54ae766 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.16 + SVR.JS 3.14.17 -

Welcome to SVR.JS 3.14.16

+

Welcome to SVR.JS 3.14.17



@@ -84,7 +84,7 @@

Changes:

Tests
diff --git a/licenses/index.html b/licenses/index.html index b89106e..b962596 100644 --- a/licenses/index.html +++ b/licenses/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.16 Licenses + SVR.JS 3.14.17 Licenses -

SVR.JS 3.14.16 Licenses

-

SVR.JS 3.14.16

+

SVR.JS 3.14.17 Licenses

+

SVR.JS 3.14.17

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.16

+

Packages used by SVR.JS 3.14.17

License: MIT
diff --git a/svr.js b/svr.js index 93311cf..2f19d04 100644 --- a/svr.js +++ b/svr.js @@ -69,7 +69,7 @@ function deleteFolderRecursive(path) { } var os = require("os"); -var version = "3.14.16"; +var version = "3.14.17"; var singlethreaded = false; if (process.versions) process.versions.svrjs = version; // Inject SVR.JS into process.versions @@ -4968,7 +4968,7 @@ function start(init) { if (configJSON.enableHTTP2 && !secure) serverconsole.locwarnmessage("HTTP/2 without HTTPS may not work in web browsers. Web browsers only support HTTP/2 with HTTPS!"); if (process.isBun) { serverconsole.locwarnmessage("Bun support is experimental. Some features of SVR.JS, SVR.JS mods and SVR.JS server-side JavaScript may not work as expected."); - if (users.some(function (entry) { + if (process.isBun && !(process.versions.bun && !process.versions.bun.match(/^(?:0\.|1\.0\.|1\.1\.[0-9](?![0-9])|1\.1\.1[0-2](?![0-9]))/)) && users.some(function (entry) { return entry.pbkdf2; })) serverconsole.locwarnmessage("PBKDF2 password hashing function in Bun blocks the event loop, which may result in denial of service."); } diff --git a/svrpasswd.js b/svrpasswd.js index ef4d241..5a0079c 100644 --- a/svrpasswd.js +++ b/svrpasswd.js @@ -338,7 +338,7 @@ function promptAlgorithms(callback, bypass, pbkdf2, scrypt) { pbkdf2: "PBKDF2 (PBKDF2-HMAC-SHA512, 36250 iterations) - more secure and uses less memory, but slower", scrypt: "scrypt (N=2^14, r=8, p=1) - faster and more secure, but uses more memory" } - if (!crypto.pbkdf2 || process.isBun) delete algorithms.pbkdf2; + if (!crypto.pbkdf2 || (process.isBun && !(process.versions.bun && !process.versions.bun.match(/^(?:0\.|1\.0\.|1\.1\.[0-9](?![0-9])|1\.1\.1[0-2](?![0-9]))/)))) delete algorithms.pbkdf2; var algorithmNames = Object.keys(algorithms); if (algorithmNames.length < 2) callback(algorithmNames[0]); console.log("Select password hashing algorithm. Available algorithms:"); diff --git a/tests.html b/tests.html index 1ef64a6..5b13af1 100644 --- a/tests.html +++ b/tests.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.16 Tests + SVR.JS 3.14.17 Tests -

SVR.JS 3.14.16 Tests

+

SVR.JS 3.14.17 Tests

Directory (without trailing slash)

Directory (with query)