mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Added the mobile-dpd configuration option.
This option allows setting a different DPD value for mobile clients to allow them going to sleep for longer time.
This commit is contained in:
@@ -57,6 +57,7 @@ static struct cfg_options available_options[] = {
|
||||
{ .name = "udp-port", .type = OPTION_NUMERIC, .mandatory = 0 },
|
||||
{ .name = "keepalive", .type = OPTION_NUMERIC, .mandatory = 0 },
|
||||
{ .name = "dpd", .type = OPTION_NUMERIC, .mandatory = 0 },
|
||||
{ .name = "mobile-dpd", .type = OPTION_NUMERIC, .mandatory = 0 },
|
||||
{ .name = "rate-limit-ms", .type = OPTION_NUMERIC, .mandatory = 0 },
|
||||
{ .name = "ocsp-response", .type = OPTION_STRING, .mandatory = 0 },
|
||||
{ .name = "server-cert", .type = OPTION_STRING, .mandatory = 1 },
|
||||
@@ -322,6 +323,7 @@ unsigned force_cert_auth;
|
||||
READ_NUMERIC("udp-port", config->udp_port);
|
||||
READ_NUMERIC("keepalive", config->keepalive);
|
||||
READ_NUMERIC("dpd", config->dpd);
|
||||
READ_NUMERIC("mobile-dpd", config->mobile_dpd);
|
||||
READ_NUMERIC("rate-limit-ms", config->rate_limit_ms);
|
||||
|
||||
READ_STRING("ocsp-response", config->ocsp_response);
|
||||
|
||||
Reference in New Issue
Block a user