Skip to content

v1.43.2

Choose a tag to compare

@Rafiot Rafiot released this 27 Oct 10:21
· 9 commits to main since this release
v1.43.2
626baef

Generic patch for blocking the load of local resources during captures (only_global_lookup set to True):

  • Check content for /etc/hosts for hardcoded resolution, blocks all the hostnames if they point to non-global IPs
  • Allows the user to pass lists of IPs and hostnames to block

Important: PlaywrightCapture doesn't trigger a DNS resolution prior to every requests made by the browser, it is primarily for performance reasons (when a capture has many hundred unique hostnames, resolving each of them will be too slow). But even if we put that aside, we cannot have the assurance that the local resolution is the same as the one happening in the browser (round robin, proxy), so that would be unreliable. If you want to block specific (non-global) IPs or hostnames (that aren't in /etc/hosts) from being queried by the library, you must pass them to custom_local_hostnames or custom_local_ips.

What's Changed

  • build(deps): bump github/codeql-action from 4.39.0 to 4.39.1 by @dependabot[bot] in #265

Full Changelog: v1.43.1...v1.43.2