← Files RivetARCHIVED FILE

node_modules/http-proxy-middleware/dist/utils/logger-plugin.js

290 Bytes · Nov 7, 2026 · 13:16 UTC

↓ Download file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPort = getPort;
/**
 * Get port from target
 * Using proxyRes.req.agent.sockets to determine the target port
 */
function getPort(sockets) {
    return Object.keys(sockets || {})?.[0]?.split(':')[1];
}

SHA-256: 479fba6d7fc475f9d934ca80eddc7b56e5b13dea83f3ef097f19edc1c156ee33