Repository navigation
Conversation
… edge-labelled #10 Adds a report-only `host` section (JSON schema 1.17): resolved IPv4/IPv6 addresses, the GeoIP country of the first address, and a TCP connect time labelled as such. The country comes from a bundled DB-IP Lite country snapshot (2026-11, CC BY 4.0, source sha256 in packages/utils/geoip-db/ SNAPSHOT.json); lookups are offline and a missing country is omitted. When existing technology detection finds Cloudflare, CloudFront, Vercel, Netlify, Fastly or Akamai, the country is labelled an edge/anycast location and not the origin's, in every output format. No new edge detection. Attribution is in the README and THIRD_PARTY_NOTICES; compiled CLI grows by about 2.2 MiB. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Nik Cubrilovic <[email protected]>
|
|
||
| function parseV6(ip: string): Uint8Array | null { | ||
| let text = ip.split("%")[0]!; | ||
| const tailV4 = /(\d+\.\d+\.\d+\.\d+)$/.exec(text); |
Signed-off-by: Nik Cubrilovic <[email protected]>
This was referenced Nov 13, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #10. Adds a report-only
hostsection (JSON schema 1.17), never scored:tcp-connect(not ICMP ping, not page load).docs/cloud/technologies.mdx,docs/configuration/output.mdx).Edge requirement (Nik): when existing technology detection finds Cloudflare, CloudFront, Vercel, Netlify, Fastly or Akamai, the country is labelled an edge/anycast location (
country.location: "edge",country.edge), never the origin's. No new edge detection. Regression tests inpackages/audit-engine/tests/host-info.test.tsandpackages/report/tests/host-10.test.ts. This also gives #1807 its hook.Data and licence
dbip-country-lite-2026-11.csv.gzsha256e5c8459d638a272ece7f4d7cfa49dce18d91b4f403f6940ba9249bf0db3781fd, recorded inpackages/utils/geoip-db/SNAPSHOT.json.packages/utils/scripts/build-geoip-db.ts(no network) intocountry.bin.gz(2.3 MB).THIRD_PARTY_NOTICES.md(via its generator) and the docs.Binary size
apps/cli/build/squirrelscan: 131,029,168 bytes before, 133,339,312 after (+2,310,144, about 2.2 MiB; limit was 10 MB).Verification
bun run typecheckin core-contracts, utils, audit-engine, report, apps/cli;format:checkandlintin apps/cli and report.make validatein docs passes;generate-third-party-notices.ts --checkpasses.hostwith latency and no country for loopback.Agent skill: no change needed (new optional output field only).
Checklist
Signed-off-byline.🤖 Generated with Claude Code