UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.

7 lines (6 loc) 235 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeHostname = normalizeHostname; function normalizeHostname(hostname) { return hostname.endsWith(".") ? hostname.slice(0, -1) : hostname; }