Showing 2 of 6 total issues
File index.js
has 281 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// determine the ASN of the connecting IP
const dns = require('node:dns').promises
const fs = require('node:fs/promises')
const path = require('node:path')
Function lookup_via_dns
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.lookup_via_dns = function (next, connection) {
if (connection.remote.is_private) return next()
const promises = []