mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
Specify parseInt base
This commit is contained in:
parent
8edc1be7b5
commit
8442472f37
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue