mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
when mobile-dpd and mobile-idle-timeout are not set, they get values from their non-mobile counterpart.
This commit is contained in:
+6
-1
@@ -330,7 +330,7 @@ unsigned force_cert_auth;
|
|||||||
|
|
||||||
READ_NUMERIC("mobile-dpd", config->mobile_dpd);
|
READ_NUMERIC("mobile-dpd", config->mobile_dpd);
|
||||||
if (config->mobile_dpd == 0)
|
if (config->mobile_dpd == 0)
|
||||||
config->mobile_dpd = DEFAULT_MOBILE_DPD_TIME;
|
config->mobile_dpd = config->dpd;
|
||||||
|
|
||||||
READ_NUMERIC("rate-limit-ms", config->rate_limit_ms);
|
READ_NUMERIC("rate-limit-ms", config->rate_limit_ms);
|
||||||
|
|
||||||
@@ -395,7 +395,12 @@ unsigned force_cert_auth;
|
|||||||
|
|
||||||
READ_NUMERIC("auth-timeout", config->auth_timeout);
|
READ_NUMERIC("auth-timeout", config->auth_timeout);
|
||||||
READ_NUMERIC("idle-timeout", config->idle_timeout);
|
READ_NUMERIC("idle-timeout", config->idle_timeout);
|
||||||
|
|
||||||
|
config->mobile_idle_timeout = -1;
|
||||||
READ_NUMERIC("mobile-idle-timeout", config->mobile_idle_timeout);
|
READ_NUMERIC("mobile-idle-timeout", config->mobile_idle_timeout);
|
||||||
|
if (config->mobile_idle_timeout == -1)
|
||||||
|
config->mobile_idle_timeout = config->idle_timeout;
|
||||||
|
|
||||||
READ_NUMERIC("max-clients", config->max_clients);
|
READ_NUMERIC("max-clients", config->max_clients);
|
||||||
READ_NUMERIC("min-reauth-time", config->min_reauth_time);
|
READ_NUMERIC("min-reauth-time", config->min_reauth_time);
|
||||||
READ_NUMERIC("max-same-clients", config->max_same_clients);
|
READ_NUMERIC("max-same-clients", config->max_same_clients);
|
||||||
|
|||||||
@@ -50,7 +50,6 @@
|
|||||||
#define DEBUG_TLS 9
|
#define DEBUG_TLS 9
|
||||||
|
|
||||||
#define DEFAULT_DPD_TIME 600
|
#define DEFAULT_DPD_TIME 600
|
||||||
#define DEFAULT_MOBILE_DPD_TIME 1800
|
|
||||||
|
|
||||||
#define AC_PKT_DATA 0 /* Uncompressed data */
|
#define AC_PKT_DATA 0 /* Uncompressed data */
|
||||||
#define AC_PKT_DPD_OUT 3 /* Dead Peer Detection */
|
#define AC_PKT_DPD_OUT 3 /* Dead Peer Detection */
|
||||||
|
|||||||
Reference in New Issue
Block a user