Skip to content

Commit

Permalink
Log when RPC server rejects IP
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Jul 4, 2024
1 parent bcfdf1e commit a4bc81e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/nodejs/modules/JsonRpcServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4bc81e

Please sign in to comment.