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;