Merge pull request #2439 from thelounge/xpaw/identd-parseint
Specify parseInt base in respondToIdent
This commit is contained in:
commit
db4661339a
@ -47,8 +47,8 @@ class Identification {
|
|||||||
respondToIdent(socket, data) {
|
respondToIdent(socket, data) {
|
||||||
data = data.toString().split(",");
|
data = data.toString().split(",");
|
||||||
|
|
||||||
const lport = parseInt(data[0]);
|
const lport = parseInt(data[0], 10) || 0;
|
||||||
const fport = parseInt(data[1]);
|
const fport = parseInt(data[1], 10) || 0;
|
||||||
|
|
||||||
if (lport < 1 || fport < 1 || lport > 65535 || fport > 65535) {
|
if (lport < 1 || fport < 1 || lport > 65535 || fport > 65535) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user