lib/socket.js
function filter(socket, message, rinfo) {
  const isAllowedAddress = socket.remoteAddress === rinfo.address;
  const isAllowedPort = socket.remotePort === rinfo.port;

  return isAllowedAddress && isAllowedPort;
}
function filter(socket, message, rinfo) {
  const isAllowedAddress = socket.remoteAddress === rinfo.address;
  const isAllowedPort = socket.remotePort === rinfo.port;

  return isAllowedAddress && isAllowedPort;
}
function filter ( socket , message , rinfo ) { const isAllowedAddress = socket . remoteAddress === rinfo . address ; const isAllowedPort = socket . remotePort === rinfo . port ; return isAllowedAddress && isAllowedPort ; }
Default filter for incoming messages.
@param {Socket} socket
@param {Buffer} message
@param {{address: string, port: number}} rinfo
@returns {bool}
Default filter for incoming messages .