forked from I2P_Developers/i2p.i2p
I2CP: Log IP on authentication failure
This commit is contained in:
@ -414,8 +414,9 @@ class ClientMessageEventListener implements I2CPMessageReader.I2CPMessageEventLi
|
|||||||
}
|
}
|
||||||
PasswordManager mgr = new PasswordManager(_context);
|
PasswordManager mgr = new PasswordManager(_context);
|
||||||
if (!mgr.checkHash(PROP_AUTH, user, pw)) {
|
if (!mgr.checkHash(PROP_AUTH, user, pw)) {
|
||||||
_log.logAlways(Log.WARN, "I2CP authentication failed, user: " + user);
|
String msg = "I2CP authentication failed, user: " + user + " IP: " + _runner.getAddress();
|
||||||
_runner.disconnectClient("Authorization failed, user = " + user);
|
_log.logAlways(Log.WARN, msg);
|
||||||
|
_runner.disconnectClient(msg);
|
||||||
_authorized = false;
|
_authorized = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user