From eb0eefe3541828484d963d59e3baa998c6fa9a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Wed, 23 Aug 2023 09:05:38 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=20=E4=BF=AE=E6=AD=A3=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E5=AE=8F=E5=AE=9A=E4=B9=89=E5=AF=BC=E8=87=B4=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= =?UTF-8?q?=202.=20=20=E9=9A=A7=E9=81=93=E7=AE=A1=E7=90=86=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=9C=8D=E5=8A=A1=E7=AB=AF=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=A2=9E=E5=8A=A0=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=9D=83=E9=99=90=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NetTunnelSDK/protocol/protocol.cpp | 2 ++ NetTunnelServerApp/NetTunnelServerApp.vcxproj | 1 + NetTunnelSvr/NetTunnelSvr.vcxproj | 1 + 3 files changed, 4 insertions(+) diff --git a/NetTunnelSDK/protocol/protocol.cpp b/NetTunnelSDK/protocol/protocol.cpp index 10f6252..b2b1149 100644 --- a/NetTunnelSDK/protocol/protocol.cpp +++ b/NetTunnelSDK/protocol/protocol.cpp @@ -297,6 +297,7 @@ template int PlatformProtolGetMessage(const TCHAR *pUrlPath, T1 *pRsp) } #endif +#if !USER_REAL_PLATFORM template int PlatformProtolPostMessage(const TCHAR *pUrlPath, T1 *pReq, T2 *pRsp) { int ret; httplib::Result res; @@ -405,6 +406,7 @@ template int PlatformProtolPostMessage(const TCHAR *pUrlPath return ERR_SUCCESS; } +#endif template int ProtolPostMessage(const TCHAR *pUrlPath, ProtocolRequest *pReq, diff --git a/NetTunnelServerApp/NetTunnelServerApp.vcxproj b/NetTunnelServerApp/NetTunnelServerApp.vcxproj index 3580f6a..f82539a 100644 --- a/NetTunnelServerApp/NetTunnelServerApp.vcxproj +++ b/NetTunnelServerApp/NetTunnelServerApp.vcxproj @@ -115,6 +115,7 @@ true $(SolutionDir)$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories) NetTunnelSDK.lib;%(AdditionalDependencies) + RequireAdministrator diff --git a/NetTunnelSvr/NetTunnelSvr.vcxproj b/NetTunnelSvr/NetTunnelSvr.vcxproj index 6b8be05..c776a69 100644 --- a/NetTunnelSvr/NetTunnelSvr.vcxproj +++ b/NetTunnelSvr/NetTunnelSvr.vcxproj @@ -108,6 +108,7 @@ Console true + RequireAdministrator copy /y $(TargetDir)*.exe $(SolutionDir)\NetTunnelApp\bin\$(ConfigurationName)\