From 52d62afa59a6c8928a610f8b65f08b304b7b8892 Mon Sep 17 00:00:00 2001
From: cppla <i@cpp.la>
Date: Tue, 28 Feb 2023 17:19:49 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96curl?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 server/src/main.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/server/src/main.cpp b/server/src/main.cpp
index 36c5591..9d2343f 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -343,8 +343,11 @@ void CMain::WatchdogMessage(int ClientNetID, double load_1, double load_5, doubl
                     sprintf(urlBuffer, "%s%s",Watchdog(ID)->m_aCallback, encodeUrl);
 
 
-                    curl_easy_setopt(curl, CURLOPT_POST, 1);
+                    curl_easy_setopt(curl, CURLOPT_POST, 1L);
                     curl_easy_setopt(curl, CURLOPT_URL, urlBuffer);
+                    curl_easy_setopt(curl, CURLOPT_POSTFIELDS,"signature=ServerStatus");
+                    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
+                    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
                     curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 3L);
                     curl_easy_setopt(curl, CURLOPT_TIMEOUT, 6L);
                     res = curl_easy_perform(curl);