fix(network): normalize SSRF IP parsing and monitor typing

This commit is contained in:
Peter Steinberger
2026-02-22 18:55:12 +01:00
parent 4ed87a6672
commit 98427453ba
5 changed files with 65 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ import { createPinnedDispatcher, type PinnedHostname } from "./ssrf.js";
describe("createPinnedDispatcher", () => {
it("enables network family auto-selection for pinned lookups", () => {
const lookup = vi.fn();
const lookup = vi.fn() as unknown as PinnedHostname["lookup"];
const pinned: PinnedHostname = {
hostname: "api.telegram.org",
addresses: ["149.154.167.220"],