@@ -273,7 +273,6 @@ static const char usage_message[] =
273
273
"--persist-tun : Keep tun/tap device open across SIGUSR1 or --ping-restart.\n"
274
274
"--persist-remote-ip : Keep remote IP address across SIGUSR1 or --ping-restart.\n"
275
275
"--persist-local-ip : Keep local IP address across SIGUSR1 or --ping-restart.\n"
276
- "--persist-key : Don't re-read key files across SIGUSR1 or --ping-restart.\n"
277
276
#if PASSTOS_CAPABILITY
278
277
"--passtos : TOS passthrough (applies to IPv4 only).\n"
279
278
#endif
@@ -1857,7 +1856,6 @@ show_settings(const struct options *o)
1857
1856
SHOW_BOOL (persist_tun );
1858
1857
SHOW_BOOL (persist_local_ip );
1859
1858
SHOW_BOOL (persist_remote_ip );
1860
- SHOW_BOOL (persist_key );
1861
1859
1862
1860
#if PASSTOS_CAPABILITY
1863
1861
SHOW_BOOL (passtos );
@@ -3240,18 +3238,16 @@ options_postprocess_mutate_ce(struct options *o, struct connection_entry *ce)
3240
3238
ce -> tls_crypt_v2_file_inline = o -> tls_crypt_v2_file_inline ;
3241
3239
}
3242
3240
3243
- /* Pre-cache tls-auth/crypt(-v2) key file if persist-key was specified and
3241
+ /* Pre-cache tls-auth/crypt(-v2) key file if
3244
3242
* keys were not already embedded in the config file.
3245
3243
*/
3246
- if (o -> persist_key )
3247
- {
3248
- connection_entry_preload_key (& ce -> tls_auth_file ,
3249
- & ce -> tls_auth_file_inline , & o -> gc );
3250
- connection_entry_preload_key (& ce -> tls_crypt_file ,
3251
- & ce -> tls_crypt_file_inline , & o -> gc );
3252
- connection_entry_preload_key (& ce -> tls_crypt_v2_file ,
3253
- & ce -> tls_crypt_v2_file_inline , & o -> gc );
3254
- }
3244
+ connection_entry_preload_key (& ce -> tls_auth_file ,
3245
+ & ce -> tls_auth_file_inline , & o -> gc );
3246
+ connection_entry_preload_key (& ce -> tls_crypt_file ,
3247
+ & ce -> tls_crypt_file_inline , & o -> gc );
3248
+ connection_entry_preload_key (& ce -> tls_crypt_v2_file ,
3249
+ & ce -> tls_crypt_v2_file_inline , & o -> gc );
3250
+
3255
3251
3256
3252
if (!proto_is_udp (ce -> proto ) && ce -> explicit_exit_notification )
3257
3253
{
@@ -6963,7 +6959,8 @@ add_option(struct options *options,
6963
6959
else if (streq (p [0 ], "persist - key ") && !p [1 ])
6964
6960
{
6965
6961
VERIFY_PERMISSION (OPT_P_PERSIST );
6966
- options -> persist_key = true;
6962
+ msg (M_WARN , "DEPRECATED: --persist-key option ignored. "
6963
+ "Keys are now always persisted across restarts. " );
6967
6964
}
6968
6965
else if (streq (p [0 ], "persist - local - ip ") && !p [1 ])
6969
6966
{
0 commit comments