From: Huangbin Zhan Date: Wed, 9 Dec 2020 06:18:11 +0000 (+0800) Subject: libopkg: allow install package from https and ftps X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=project%2Fopkg-lede.git libopkg: allow install package from https and ftps Signed-off-by: Huangbin Zhan Link: https://github.com/openwrt/opkg-lede/pull/2 Signed-off-by: Robert Marko --- diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index af91f12..fd4ef3e 100644 --- a/libopkg/opkg_download.c +++ b/libopkg/opkg_download.c @@ -321,8 +321,8 @@ int opkg_prepare_url_for_install(const char *url, char **namep) pkg = pkg_new(); - if (str_starts_with(url, "http://") - || str_starts_with(url, "ftp://")) { + if (str_starts_with(url, "http://") || str_starts_with(url, "https://") + || str_starts_with(url, "ftp://") || str_starts_with(url, "ftps://")) { char *tmp_file; char *file_basec = xstrdup(url); char *file_base = basename(file_basec);