mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
Disconnect telnetClient on reboot
This commit is contained in:
parent
a3fa04db62
commit
3ab89febc7
@ -48,15 +48,22 @@ void telnet_update_prompt()
|
|||||||
bufferedTelnetClient.flush();
|
bufferedTelnetClient.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void telnetClientDisconnect()
|
|
||||||
|
|
||||||
|
void telnetStop(void)
|
||||||
{
|
{
|
||||||
Log.unregisterOutput(1); // telnetClient
|
|
||||||
LOG_TRACE(TAG_TELN, F(D_TELNET_CLOSING_CONNECTION), telnetClient.remoteIP().toString().c_str());
|
LOG_TRACE(TAG_TELN, F(D_TELNET_CLOSING_CONNECTION), telnetClient.remoteIP().toString().c_str());
|
||||||
|
Log.unregisterOutput(1); // telnetClient
|
||||||
|
telnetClient.stop();
|
||||||
|
|
||||||
telnetLoginState = TELNET_UNAUTHENTICATED;
|
telnetLoginState = TELNET_UNAUTHENTICATED;
|
||||||
telnetLoginAttempt = 0; // Initial attempt
|
telnetLoginAttempt = 0; // Initial attempt
|
||||||
delete telnetConsole;
|
delete telnetConsole;
|
||||||
telnetConsole = NULL;
|
telnetConsole = NULL;}
|
||||||
telnetClient.stop();
|
|
||||||
|
static inline void telnetClientDisconnect()
|
||||||
|
{
|
||||||
|
telnetStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void telnetClientLogon()
|
void telnetClientLogon()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user