mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 12:02:28 +02:00
Also restore/save compress related options in reconnects
Trac: #1396, #128 Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20210408120029.19438-2-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22078.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
c1150e5b95
commit
2a414c3c79
@ -3593,6 +3593,11 @@ pre_connect_save(struct options *o)
|
||||
o->pre_connect->ping_rec_timeout = o->ping_rec_timeout;
|
||||
o->pre_connect->ping_rec_timeout_action = o->ping_rec_timeout_action;
|
||||
o->pre_connect->ping_send_timeout = o->ping_send_timeout;
|
||||
|
||||
/* Miscellaneous Options */
|
||||
#ifdef USE_COMP
|
||||
o->pre_connect->comp = o->comp;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
@ -3645,6 +3650,11 @@ pre_connect_restore(struct options *o, struct gc_arena *gc)
|
||||
o->ping_rec_timeout = pp->ping_rec_timeout;
|
||||
o->ping_rec_timeout_action = pp->ping_rec_timeout_action;
|
||||
o->ping_send_timeout = pp->ping_send_timeout;
|
||||
|
||||
/* Miscellaneous Options */
|
||||
#ifdef USE_COMP
|
||||
o->comp = pp->comp;
|
||||
#endif
|
||||
}
|
||||
|
||||
o->push_continuation = 0;
|
||||
|
@ -81,6 +81,9 @@ struct options_pre_connect
|
||||
int ping_rec_timeout_action;
|
||||
|
||||
int foreign_option_index;
|
||||
#ifdef USE_COMP
|
||||
struct compress_options comp;
|
||||
#endif
|
||||
};
|
||||
|
||||
#if !defined(ENABLE_CRYPTO_OPENSSL) && !defined(ENABLE_CRYPTO_MBEDTLS)
|
||||
|
Loading…
Reference in New Issue
Block a user