WIN32_Exit();
}
+#ifdef _SQUID_MSWIN_
void
WIN32_IpAddrChangeMonitorExit()
{
DWORD status = ERROR_SUCCESS;
- if (NotifyAddrChange_thread == INVALID_HANDLE_VALUE) {
+ if (NotifyAddrChange_thread != INVALID_HANDLE_VALUE) {
TerminateThread(NotifyAddrChange_thread, status);
CloseHandle(NotifyAddrChange_thread);
}
}
+#endif
void
WIN32_Exit()
DWORD status = ERROR_SUCCESS;
DWORD threadID = 0, ThrdParam = 0;
- if (WIN32_run_mode == _WIN_SQUID_RUN_MODE_SERVICE) {
+ if ((WIN32_run_mode == _WIN_SQUID_RUN_MODE_SERVICE) && (Config.onoff.WIN32_IpAddrChangeMonitor)) {
NotifyAddrChange_thread = CreateThread(NULL, 0, WIN32_IpAddrChangeMonitor,
&ThrdParam, 0, &threadID);
if (NotifyAddrChange_thread == NULL) {
rounded to 1000.
DOC_END
+NAME: windows_ipaddrchangemonitor
+COMMENT: on|off
+TYPE: onoff
+DEFAULT: on
+LOC: Config.onoff.WIN32_IpAddrChangeMonitor
+DOC_START
+ On Windows Squid by default will monitor IP address changes and will
+ reconfigure itself after any detected event. This is very useful for
+ proxies connected to internet with dial-up interfaces.
+ In some cases (a Proxy server acting as VPN gateway is one) it could be
+ desiderable to disable this behaviour setting this to 'off'.
+ Note: after changing this, Squid service must be restarted.
+DOC_END
+
EOF
int httpd_suppress_version_string;
int global_internal_static;
int debug_override_X;
+ int WIN32_IpAddrChangeMonitor;
}
onoff;