Specify parseInt base
This commit is contained in:
parent
8edc1be7b5
commit
8442472f37
@ -47,8 +47,8 @@ class Identification {
|
||||
respondToIdent(socket, data) {
|
||||
data = data.toString().split(",");
|
||||
|
||||
const lport = parseInt(data[0]);
|
||||
const fport = parseInt(data[1]);
|
||||
const lport = parseInt(data[0], 10) || 0;
|
||||
const fport = parseInt(data[1], 10) || 0;
|
||||
|
||||
if (lport < 1 || fport < 1 || lport > 65535 || fport > 65535) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user