Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

295 B
Raw Blame
/* Dual-stack sockets see IPv4 peers as ::ffff:a.b.c.d, and proxies using localhost may arrive on ::1 */
module.exports = (proxyWhitelist, ip) => {
  const ipv4 = ip === '::1' ? '127.0.0.1' : ip?.replace(/^::ffff:/, '');
  return proxyWhitelist.includes(ip) || proxyWhitelist.includes(ipv4);
};