mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Do not allow DPD to be disabled.
Doing so would prevent the server from dropping inactive connections. If the dpd values are not configured, set some reasonable defaults.
This commit is contained in:
@@ -323,7 +323,13 @@ unsigned force_cert_auth;
|
||||
READ_NUMERIC("udp-port", config->udp_port);
|
||||
READ_NUMERIC("keepalive", config->keepalive);
|
||||
READ_NUMERIC("dpd", config->dpd);
|
||||
if (config->dpd == 0)
|
||||
config->dpd = DEFAULT_DPD_TIME;
|
||||
|
||||
READ_NUMERIC("mobile-dpd", config->mobile_dpd);
|
||||
if (config->mobile_dpd == 0)
|
||||
config->mobile_dpd = DEFAULT_MOBILE_DPD_TIME;
|
||||
|
||||
READ_NUMERIC("rate-limit-ms", config->rate_limit_ms);
|
||||
|
||||
READ_STRING("ocsp-response", config->ocsp_response);
|
||||
|
||||
Reference in New Issue
Block a user