Merge pull request #2959 from thelounge/xpaw/relax-identd
Relax identd checks to make it more compatible
This commit is contained in:
commit
13d21ce002
@ -56,11 +56,8 @@ class Identification {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const connection of this.connections.values()) {
|
for (const connection of this.connections.values()) {
|
||||||
if (connection.socket.remoteAddress === socket.remoteAddress
|
if (connection.socket.remotePort === fport && connection.socket.localPort === lport) {
|
||||||
&& connection.socket.remotePort === fport
|
return socket.write(`${lport}, ${fport} : USERID : TheLounge : ${connection.user}\r\n`);
|
||||||
&& connection.socket.localPort === lport
|
|
||||||
&& connection.socket.localAddress === socket.localAddress) {
|
|
||||||
return socket.write(`${lport}, ${fport} : USERID : UNIX : ${connection.user}\r\n`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,9 +88,7 @@ class Identification {
|
|||||||
let file = "# Warning: file generated by The Lounge: changes will be overwritten!\n";
|
let file = "# Warning: file generated by The Lounge: changes will be overwritten!\n";
|
||||||
|
|
||||||
this.connections.forEach((connection) => {
|
this.connections.forEach((connection) => {
|
||||||
file += `to ${connection.socket.remoteAddress}`
|
file += `fport ${connection.socket.remotePort}`
|
||||||
+ ` fport ${connection.socket.remotePort}`
|
|
||||||
+ ` from ${connection.socket.localAddress}`
|
|
||||||
+ ` lport ${connection.socket.localPort}`
|
+ ` lport ${connection.socket.localPort}`
|
||||||
+ ` { reply "${connection.user}" }\n`;
|
+ ` { reply "${connection.user}" }\n`;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user