{"no_check_certificate", OPKG_OPT_TYPE_BOOL, &_conf.no_check_certificate},
{"ftp_proxy", OPKG_OPT_TYPE_STRING, &_conf.ftp_proxy},
{"http_proxy", OPKG_OPT_TYPE_STRING, &_conf.http_proxy},
+ {"http_timeout", OPKG_OPT_TYPE_STRING, &_conf.http_timeout},
{"no_proxy", OPKG_OPT_TYPE_STRING, &_conf.no_proxy},
{"test", OPKG_OPT_TYPE_BOOL, &_conf.noaction},
{"noaction", OPKG_OPT_TYPE_BOOL, &_conf.noaction},
{
int res;
- const char *argv[9];
+ const char *argv[11];
int i = 0;
argv[i++] = "wget";
if (conf->no_check_certificate) {
argv[i++] = "--no-check-certificate";
}
+ if (conf->http_timeout) {
+ argv[i++] = "--timeout";
+ argv[i++] = conf->http_timeout;
+ }
if (conf->http_proxy || conf->ftp_proxy) {
argv[i++] = "-Y";
argv[i++] = "on";