From 8c7dfa0c62f6fccdf0a8cadd8a38559489dc46f9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 4 Jan 2026 12:01:28 -1000 Subject: [PATCH] tweaks --- esphome/components/wireguard/wireguard.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/esphome/components/wireguard/wireguard.cpp b/esphome/components/wireguard/wireguard.cpp index 3a21d6470d..7810a40ae1 100644 --- a/esphome/components/wireguard/wireguard.cpp +++ b/esphome/components/wireguard/wireguard.cpp @@ -131,22 +131,21 @@ void Wireguard::update() { } void Wireguard::dump_config() { + // clang-format off ESP_LOGCONFIG( TAG, "WireGuard:\n" " Address: %s\n" " Netmask: %s\n" " Private Key: " LOG_SECRET("%s") "\n" - " Peer Endpoint: " LOG_SECRET( - "%s") "\n" - " Peer Port: " LOG_SECRET( - "%d") "\n" - " Peer Public Key: " LOG_SECRET( - "%s") "\n" - " Peer Pre-shared Key: " LOG_SECRET("%s"), + " Peer Endpoint: " LOG_SECRET("%s") "\n" + " Peer Port: " LOG_SECRET("%d") "\n" + " Peer Public Key: " LOG_SECRET("%s") "\n" + " Peer Pre-shared Key: " LOG_SECRET("%s"), this->address_.c_str(), this->netmask_.c_str(), mask_key(this->private_key_).c_str(), this->peer_endpoint_.c_str(), this->peer_port_, this->peer_public_key_.c_str(), (!this->preshared_key_.empty() ? mask_key(this->preshared_key_).c_str() : "NOT IN USE")); + // clang-format on ESP_LOGCONFIG(TAG, " Peer Allowed IPs:"); for (auto &allowed_ip : this->allowed_ips_) { ESP_LOGCONFIG(TAG, " - %s/%s", std::get<0>(allowed_ip).c_str(), std::get<1>(allowed_ip).c_str());