Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/tailscale/http2_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ bool Http2Session::has_complete_json_(const char* buffer, size_t buffer_size) {
}

// Final check: all braces closed, ensure we end with }
for (size_t i = buffer_size; i > start_offset && i > buffer_size - 100; i--) {
for (size_t i = buffer_size; i > start_offset && i > (buffer_size > 100 ? buffer_size - 100 : 0); i--) {
char c = buffer[i - 1];
if (!std::isspace(static_cast<unsigned char>(c))) {
bool ends_with_brace = (c == '}');
Expand Down
1 change: 1 addition & 0 deletions components/tailscale/wireguard_device_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ bool WireGuardDeviceManager::init(const uint8_t* our_private_key) {
static bool wg_initialized = false;
if (!wg_initialized) {
ESP_LOGI(TAG, "Initializing WireGuard library...");
wireguard_platform_init();
wireguard_init();
wg_initialized = true;
ESP_LOGI(TAG, "✓ WireGuard library initialized");
Expand Down