diff options
Diffstat (limited to 'src/Cedar/CM.c')
-rw-r--r-- | src/Cedar/CM.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Cedar/CM.c b/src/Cedar/CM.c index 9bd01a44..3d2013bd 100644 --- a/src/Cedar/CM.c +++ b/src/Cedar/CM.c @@ -5910,6 +5910,7 @@ void CmConfigDlgInit(HWND hWnd) }
Check(hWnd, R_ALLOW_REMOTE_CONFIG, c.AllowRemoteConfig);
+ Check(hWnd, R_TUNNELCRACK, c.EnableTunnelCrackProtect);
Check(hWnd, R_USE_KEEP_CONNECT, c.UseKeepConnect);
SetTextA(hWnd, E_HOSTNAME, c.KeepConnectHost);
@@ -5936,6 +5937,15 @@ void CmConfigDlgInit(HWND hWnd) Disable(hWnd, R_ALPHA);
}
+ if (OS_IS_WINDOWS_NT(cm->Client->OsType))
+ {
+ Enable(hWnd, R_TUNNELCRACK);
+ }
+ else
+ {
+ Disable(hWnd, R_TUNNELCRACK);
+ }
+
CmConfigDlgRefresh(hWnd);
}
@@ -6015,6 +6025,7 @@ void CmConfigDlgOnOk(HWND hWnd) Zero(&c, sizeof(c));
c.AllowRemoteConfig = IsChecked(hWnd, R_ALLOW_REMOTE_CONFIG);
+ c.EnableTunnelCrackProtect = IsChecked(hWnd, R_TUNNELCRACK);
c.UseKeepConnect = IsChecked(hWnd, R_USE_KEEP_CONNECT);
GetTxtA(hWnd, E_HOSTNAME, c.KeepConnectHost, sizeof(c.KeepConnectHost));
c.KeepConnectPort = GetInt(hWnd, E_PORT);
|