OCT 1. 关闭端口映射方案,统一使用SCG代理TCP和UDP端口
This commit is contained in:
parent
4af5e154c6
commit
86d77c9ae9
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#define USED_PORTMAP_TUNNEL (1)
|
||||
#define USED_PORTMAP_TUNNEL (0)
|
||||
/**
|
||||
* @brief WireGuard key 最大长度
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#define USED_PORTMAP_TUNNEL (1)
|
||||
#define USED_PORTMAP_TUNNEL (0)
|
||||
/**
|
||||
* @brief WireGuard key 最大长度
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue