moltspay 1.4.0 → 1.5.0

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.
@@ -2123,8 +2123,10 @@ var MoltsPayServer = class {
2123
2123
  isProxyAllowed(clientIP) {
2124
2124
  const allowedIPs = process.env.PROXY_ALLOWED_IPS?.split(",").map((ip) => ip.trim()) || [];
2125
2125
  if (allowedIPs.length === 0) {
2126
- console.log(`[MoltsPay] /proxy denied: no PROXY_ALLOWED_IPS configured`);
2127
- return false;
2126
+ return true;
2127
+ }
2128
+ if (allowedIPs.includes("*")) {
2129
+ return true;
2128
2130
  }
2129
2131
  const normalizedIP = clientIP === "::1" ? "127.0.0.1" : clientIP.replace("::ffff:", "");
2130
2132
  const allowed = allowedIPs.includes(normalizedIP) || allowedIPs.includes(clientIP);