mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
[Redirector] Support custom icmp delay
This commit is contained in:
@@ -8,6 +8,7 @@ extern BOOL filterIntranet;
|
||||
extern BOOL filterICMP;
|
||||
extern BOOL filterTCP;
|
||||
extern BOOL filterUDP;
|
||||
extern DWORD icmping;
|
||||
extern wstring tgtHost;
|
||||
extern wstring tgtPort;
|
||||
extern string tgtUsername;
|
||||
@@ -68,9 +69,8 @@ extern "C" {
|
||||
case AIO_FILTERUDP:
|
||||
filterUDP = (wstring(value).find(L"false") == string::npos);
|
||||
break;
|
||||
case AIO_CLRNAME:
|
||||
bypassList.clear();
|
||||
handleList.clear();
|
||||
case AIO_ICMPING:
|
||||
icmping = atoi(ws2s(value).c_str());
|
||||
break;
|
||||
case AIO_TGTHOST:
|
||||
tgtHost = wstring(value);
|
||||
@@ -84,6 +84,10 @@ extern "C" {
|
||||
case AIO_TGTPASS:
|
||||
tgtPassword = ws2s(value);
|
||||
break;
|
||||
case AIO_CLRNAME:
|
||||
bypassList.clear();
|
||||
handleList.clear();
|
||||
break;
|
||||
case AIO_BYPNAME:
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user