Skip to content

EndpointHost

EndpointHost = { address: BitAddress; kind: "ipv4"; } | { address: BitAddress; kind: "ipv6"; zoneId: string | null; } | { kind: "name"; name: string; }

Defined in: packages/net-address/src/port/endpoint.ts:19

What the host part of an endpoint turned out to be.

A registered name stays a name even when it is all digits: 2130706433 is a name here, not an address, because only a resolver can say what it points at. An allowlist must classify what the resolver returned, never this string.