projects
/
project
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libopkg: support https_proxy
[project/opkg-lede.git]
/
libopkg
/
opkg_download.c
diff --git
a/libopkg/opkg_download.c
b/libopkg/opkg_download.c
index cce4b6d77ea464ec789b3b609be38e35b78fd15b..af91f12a429ff33994c6da37d55cee45bcef97af 100644
(file)
--- a/
libopkg/opkg_download.c
+++ b/
libopkg/opkg_download.c
@@
-133,6
+133,12
@@
opkg_download(const char *src, const char *dest_file_name,
conf->http_proxy);
setenv("http_proxy", conf->http_proxy, 1);
}
conf->http_proxy);
setenv("http_proxy", conf->http_proxy, 1);
}
+ if (conf->https_proxy) {
+ opkg_msg(DEBUG,
+ "Setting environment variable: https_proxy = %s.\n",
+ conf->https_proxy);
+ setenv("https_proxy", conf->https_proxy, 1);
+ }
if (conf->ftp_proxy) {
opkg_msg(DEBUG,
"Setting environment variable: ftp_proxy = %s.\n",
if (conf->ftp_proxy) {
opkg_msg(DEBUG,
"Setting environment variable: ftp_proxy = %s.\n",
@@
-160,7
+166,7
@@
opkg_download(const char *src, const char *dest_file_name,
argv[i++] = "--timeout";
argv[i++] = conf->http_timeout;
}
argv[i++] = "--timeout";
argv[i++] = conf->http_timeout;
}
- if (conf->http_proxy || conf->ftp_proxy) {
+ if (conf->http_proxy || conf->
https_proxy || conf->
ftp_proxy) {
argv[i++] = "-Y";
argv[i++] = "on";
}
argv[i++] = "-Y";
argv[i++] = "on";
}