From c63ada81c065fd30c1f9edd619f499e2e11c50c0 Mon Sep 17 00:00:00 2001 From: Myth Date: Wed, 6 Dec 2023 14:42:50 +0800 Subject: [PATCH] fix: zju dns check --- networkdetector/networkdetector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/networkdetector/networkdetector.cpp b/networkdetector/networkdetector.cpp index 2737237..576cf31 100644 --- a/networkdetector/networkdetector.cpp +++ b/networkdetector/networkdetector.cpp @@ -1,3 +1,4 @@ +#include #include "networkdetector.h" #include "../utils/utils.h" @@ -29,7 +30,7 @@ void NetworkDetector::start() { result.isDefaultDnsAvailable = true; - if (output.contains("10.")) + if (output.contains("Address: 10.")) { result.isZjuNet = true; result.isZjuDnsCorrect = true;