@webdecoy/fcaptcha 1.43.0 → 1.44.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.
Files changed (3) hide show
  1. package/engine.js +1 -1
  2. package/package.json +1 -1
  3. package/server.js +3 -1
package/engine.js CHANGED
@@ -266,7 +266,7 @@ function detectVisionAI(signals) {
266
266
  category: 'vision_ai', score: 0.8, confidence: 0.7,
267
267
  reason: 'PoW completed impossibly fast'
268
268
  });
269
- } else if (pow.duration > expectedMax * 3) {
269
+ } else if (pow.duration > expectedMax * 10) {
270
270
  detections.push({
271
271
  category: 'vision_ai', score: 0.6, confidence: 0.5,
272
272
  reason: 'PoW timing suggests external processing'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webdecoy/fcaptcha",
3
- "version": "1.43.0",
3
+ "version": "1.44.0",
4
4
  "description": "Open source CAPTCHA with PoW, bot detection, and Vision AI protection",
5
5
  "main": "index.js",
6
6
  "exports": {
package/server.js CHANGED
@@ -1041,7 +1041,9 @@ async function start() {
1041
1041
  if (SHARED_STATE) await SHARED_STATE.connect();
1042
1042
  const host = SECRET_KEY === require('./config').INSECURE_DEFAULT_SECRET ? '127.0.0.1' : '0.0.0.0';
1043
1043
  const server = app.listen(PORT, host, () => {
1044
- console.log(`FCaptcha server running on port ${server.address().port}`);
1044
+ const addr = server.address();
1045
+ const port = addr ? addr.port : PORT;
1046
+ console.log(`FCaptcha server running on port ${port}`);
1045
1047
  console.log(`Trusted proxies: ${PROXY_TRUST.describe()}`);
1046
1048
  console.log(`Site keys: ${SITE_KEYS.describe()}`);
1047
1049
  console.log(`Shared state: ${SHARED_STATE ? 'Redis (PoW)' : 'in-memory'}`);