UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

13 lines (12 loc) 359 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMetadataForSSRFAttack = getMetadataForSSRFAttack; function getMetadataForSSRFAttack({ hostname, port, }) { const metadata = { hostname: hostname, }; if (typeof port === "number") { metadata.port = port.toString(); } return metadata; }