From 1b3d6adc796bcf956a6e3c088c4f5fe5e7e8ee64 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 16 Jul 2002 14:45:34 +0000 Subject: [PATCH] Show message when client IP address is not allowed instead of going stealth mode. --- Global/functions.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Global/functions.js b/Global/functions.js index dc4939f9..94acd536 100644 --- a/Global/functions.js +++ b/Global/functions.js @@ -142,12 +142,15 @@ function checkAuth(appObj) { /** - * check access to the base-app by ip-addresses + * check access to the manage-app by ip-addresses */ function checkAddress() { if ( !app.data.addressFilter.matches(java.net.InetAddress.getByName(req.data.http_remotehost)) ) { app.log("denied request from " + req.data.http_remotehost ); - return forceStealth(); + // forceStealth seems a bit like overkill here. + // display a message that the ip address must be added to server.properties + res.write ("Access to address "+req.data.http_remotehost+" denied."); + return false; } else { return true; }