From 86d77c9ae96fc6ff6f36db4ccb04d60322b527fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Tue, 10 Oct 2023 18:18:40 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E5=85=B3=E9=97=AD=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E6=98=A0=E5=B0=84=E6=96=B9=E6=A1=88=EF=BC=8C=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=BD=BF=E7=94=A8SCG=E4=BB=A3=E7=90=86TCP=E5=92=8CUDP=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NetTunnelSDK/include/common.h | 2 +- NetTunnelSDK/sdk/common.h | 2 +- NetTunnelSDK/tunnel/tunnel.cpp | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NetTunnelSDK/include/common.h b/NetTunnelSDK/include/common.h index 387c1dc..89cde32 100644 --- a/NetTunnelSDK/include/common.h +++ b/NetTunnelSDK/include/common.h @@ -1,6 +1,6 @@ #pragma once -#define USED_PORTMAP_TUNNEL (1) +#define USED_PORTMAP_TUNNEL (0) /** * @brief WireGuard key 最大长度 */ diff --git a/NetTunnelSDK/sdk/common.h b/NetTunnelSDK/sdk/common.h index 866abc9..fc6331f 100644 --- a/NetTunnelSDK/sdk/common.h +++ b/NetTunnelSDK/sdk/common.h @@ -1,6 +1,6 @@ #pragma once -#define USED_PORTMAP_TUNNEL (1) +#define USED_PORTMAP_TUNNEL (0) /** * @brief WireGuard key ×î´ó³¤¶È */ diff --git a/NetTunnelSDK/tunnel/tunnel.cpp b/NetTunnelSDK/tunnel/tunnel.cpp index 831f3bc..ef54f9a 100644 --- a/NetTunnelSDK/tunnel/tunnel.cpp +++ b/NetTunnelSDK/tunnel/tunnel.cpp @@ -216,6 +216,8 @@ int EnableVerifySignature(const TCHAR *pClientId, const TCHAR *pClientSecret) { int EnableSCGProxy(bool isEnable, const TCHAR *pSCGIpAddr, int scgPort) { + SPDLOG_DEBUG(TEXT("SCG Proxy: {0}:{1} {2}"), pSCGIpAddr, scgPort, isEnable ? TEXT("TRUE") :TEXT("FALSE")); + if (pSCGIpAddr == nullptr || lstrlen(pSCGIpAddr) == 0 || lstrlen(pSCGIpAddr) >= MAX_IP_LEN) { SPDLOG_ERROR(TEXT("Input pInterfaceName params error: {0}"), pSCGIpAddr); return -ERR_INPUT_PARAMS;