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)\