mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 23:36:37 +02:00
script: add option script.scripts.url_force_https (closes #253)
This commit is contained in:
@@ -85,6 +85,7 @@ struct t_config_option *script_config_scripts_cache_expire;
|
||||
struct t_config_option *script_config_scripts_dir;
|
||||
struct t_config_option *script_config_scripts_hold;
|
||||
struct t_config_option *script_config_scripts_url;
|
||||
struct t_config_option *script_config_scripts_url_force_https;
|
||||
|
||||
|
||||
/*
|
||||
@@ -705,6 +706,14 @@ script_config_init ()
|
||||
N_("URL for file with list of scripts"),
|
||||
NULL, 0, 0, "http://weechat.org/files/plugins.xml.gz", NULL, 0, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL);
|
||||
script_config_scripts_url_force_https = weechat_config_new_option (
|
||||
script_config_file, ptr_section,
|
||||
"url_force_https", "boolean",
|
||||
N_("force use of HTTPS for downloads (index and scripts); "
|
||||
"you should disable this option only if you have problems with "
|
||||
"the downloads"),
|
||||
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user