1
0
Fork 0
forked from svrjs/svrjs

Remove duplicate client socket check

This commit is contained in:
Dorian Niemiec 2024-04-21 16:32:20 +02:00
parent 50be3cb450
commit 70cb113715

5
svr.js
View file

@ -3404,11 +3404,6 @@ if (!cluster.isPrimary) {
vresCalled = true; vresCalled = true;
} }
if (req.socket == null) {
serverconsole.errmessage("Client socket is null!!!");
return;
}
// Function to check the level of a path relative to the web root // Function to check the level of a path relative to the web root
function checkPathLevel(path) { function checkPathLevel(path) {
// Split the path into an array of components based on "/" // Split the path into an array of components based on "/"