From 1658b26cc757b50af951c51b9a606e84d1d644c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Thu, 4 Jul 2024 08:32:52 +0200 Subject: [PATCH] Log when RPC server rejects IP --- clients/nodejs/modules/JsonRpcServer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/nodejs/modules/JsonRpcServer.js b/clients/nodejs/modules/JsonRpcServer.js index 85fec257a..57b662125 100644 --- a/clients/nodejs/modules/JsonRpcServer.js +++ b/clients/nodejs/modules/JsonRpcServer.js @@ -44,6 +44,7 @@ class JsonRpcServer { found |= Nimiq.NetUtils.isIPv4inSubnet(remoteIp, subnet); } if (!found) { + console.log(`RPC: IP ${remoteIp} not allowed access`); res.writeHead(403); res.end(); return;