Changeset 187 for binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Telnet/TelnetConnection.cs
- Timestamp:
- Sep 10, 2014, 8:09:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Telnet/TelnetConnection.cs
r185 r187 15 15 private readonly Thread receiveThread = null; 16 16 private readonly Thread sendThread = null; 17 private int authTries = 0;18 17 private bool authenticated = false; 19 18 private readonly bool authEnabled; … … 91 90 LoginMessage (); 92 91 } else { 93 authTries++; 94 // TODO: check if IP has more login attempts by now 95 if (authTries < 3) { 92 if (owner.RegisterFailedLogin(endpointAddressHash)) { 96 93 WriteLine ("Password incorrect, please enter password:"); 97 94 } else { 98 95 WriteLine ("Too many failed login attempts!"); 99 96 Thread.Sleep(100); 100 //TODO: owner.FailedLogins();101 97 Close (); 102 98 Log.Out ("Telnet connection closed for too many login attempts: " + endpoint);
Note:
See TracChangeset
for help on using the changeset viewer.