moltspay 1.4.0 → 1.4.1

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.
@@ -2147,8 +2147,10 @@ var MoltsPayServer = class {
2147
2147
  isProxyAllowed(clientIP) {
2148
2148
  const allowedIPs = process.env.PROXY_ALLOWED_IPS?.split(",").map((ip) => ip.trim()) || [];
2149
2149
  if (allowedIPs.length === 0) {
2150
- console.log(`[MoltsPay] /proxy denied: no PROXY_ALLOWED_IPS configured`);
2151
- return false;
2150
+ return true;
2151
+ }
2152
+ if (allowedIPs.includes("*")) {
2153
+ return true;
2152
2154
  }
2153
2155
  const normalizedIP = clientIP === "::1" ? "127.0.0.1" : clientIP.replace("::ffff:", "");
2154
2156
  const allowed = allowedIPs.includes(normalizedIP) || allowedIPs.includes(clientIP);