LeOS-GSI/patches/leos/platform_packages_modules_D.../0010-captivePortal.patch

37 lines
1.1 KiB
Diff

From 829f309cb223346879e5d59c14953a0f19e85486 Mon Sep 17 00:00:00 2001
From: harvey186 <harvey186@hotmail.com>
Date: Mon, 8 Jan 2024 09:26:35 +0100
Subject: [PATCH] captivePortal
Change-Id: I96174fdcf23eb3de4f3be5eb2cbace96aab6c06b
---
tests/dns_responder/dns_tls_frontend.cpp | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/tests/dns_responder/dns_tls_frontend.cpp b/tests/dns_responder/dns_tls_frontend.cpp
index c93cecd..6af3c8d 100644
--- a/tests/dns_responder/dns_tls_frontend.cpp
+++ b/tests/dns_responder/dns_tls_frontend.cpp
@@ -255,17 +255,7 @@ again:
return;
}
- if (!isDotProbe) {
- DNSHeader dnsHdr;
- dnsHdr.read((char*)query, (char*)query + qlen);
- for (const auto& question : dnsHdr.questions) {
- if (question.qname.name.find("dnsotls-ds.metric.gstatic.com") !=
- std::string::npos) {
- isDotProbe = true;
- break;
- }
- }
- }
+
const int max_size = 4096;
uint8_t recv_buffer[max_size];
--
2.34.1