OCT 1. 关闭端口映射方案,统一使用SCG代理TCP和UDP端口

This commit is contained in:
黄昕 2023-10-10 18:18:40 +08:00
parent 4af5e154c6
commit 86d77c9ae9
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#pragma once
#define USED_PORTMAP_TUNNEL (1)
#define USED_PORTMAP_TUNNEL (0)
/**
* @brief WireGuard key
*/

View File

@ -1,6 +1,6 @@
#pragma once
#define USED_PORTMAP_TUNNEL (1)
#define USED_PORTMAP_TUNNEL (0)
/**
* @brief WireGuard key
*/

View File

@ -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;