/** * Navidrome MCP Server - Loopback peer guard * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { IncomingMessage } from 'node:http'; export declare function isLoopbackPeer(req: IncomingMessage): boolean; export declare function isLoopbackHostHeader(hostHeader: string | undefined): boolean; /** * A rebinding page sends its own DNS name as Host, so a LAN bind accepts only names an attacker * cannot point at this machine: IP literals, localhost, this machine's own names and extraHosts. */ export declare function isRebindSafeHostHeader(hostHeader: string | undefined, extraHosts: readonly string[]): boolean; export declare function hasProxyForwardingHeader(req: IncomingMessage): boolean; export declare function isLocalRequest(req: IncomingMessage): boolean; //# sourceMappingURL=loopback.d.ts.map