mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +01:00
Add log line to show if API encryption is being used (#2450)
This commit is contained in:
parent
32a664eedc
commit
d9b2903d78
@ -134,6 +134,11 @@ void APIServer::loop() {
|
|||||||
void APIServer::dump_config() {
|
void APIServer::dump_config() {
|
||||||
ESP_LOGCONFIG(TAG, "API Server:");
|
ESP_LOGCONFIG(TAG, "API Server:");
|
||||||
ESP_LOGCONFIG(TAG, " Address: %s:%u", network_get_address().c_str(), this->port_);
|
ESP_LOGCONFIG(TAG, " Address: %s:%u", network_get_address().c_str(), this->port_);
|
||||||
|
#ifdef USE_API_NOISE
|
||||||
|
ESP_LOGCONFIG(TAG, " Using noise encryption: YES");
|
||||||
|
#else
|
||||||
|
ESP_LOGCONFIG(TAG, " Using noise encryption: NO");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
bool APIServer::uses_password() const { return !this->password_.empty(); }
|
bool APIServer::uses_password() const { return !this->password_.empty(); }
|
||||||
bool APIServer::check_password(const std::string &password) const {
|
bool APIServer::check_password(const std::string &password) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user