@easynet/agent-tool-buildin 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2639,6 +2639,9 @@ async function validateUrl(url, allowedHosts, blockedCidrs) {
2639
2639
  }
2640
2640
  function isHostAllowed(hostname, allowedHosts) {
2641
2641
  for (const pattern of allowedHosts) {
2642
+ if (pattern === "*") {
2643
+ return true;
2644
+ }
2642
2645
  if (pattern.startsWith("*.")) {
2643
2646
  const suffix = pattern.slice(1);
2644
2647
  if (hostname.endsWith(suffix) || hostname === pattern.slice(2)) {