[pve-devel] [PATCH dab 1/1] Add https support for download
Xylle
xylle at kidja.tf
Sun Sep 19 11:09:27 CEST 2021
---
DAB.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/DAB.pm b/DAB.pm
index 9282789..3c6b948 100644
--- a/DAB.pm
+++ b/DAB.pm
@@ -517,7 +517,7 @@ sub new {
my $sources = undef;
foreach my $s (@{$config->{source}}) {
- if ($s =~ m@^\s*((http|ftp)://\S+)\s+(\S+)((\s+(\S+))+)$@) {
+ if ($s =~ m@^\s*((http|https|ftp)://\S+)\s+(\S+)((\s+(\S+))+)$@) {
my ($url, $su, $components) = ($1, $3, $4);
$su =~ s/SUITE/$suite/;
$components =~ s/^\s+//;
@@ -539,7 +539,7 @@ sub new {
}
foreach my $m (@{$config->{mirror}}) {
- if ($m =~ m@^\s*((http|ftp)://\S+)\s*=>\s*((http|ftp)://\S+)\s*$@) {
+ if ($m =~ m@^\s*((http|https|ftp)://\S+)\s*=>\s*((http|ftp)://\S+)\s*$@) {
my ($ms, $md) = ($1, $3);
my $found;
foreach my $ss (@$sources) {
--
2.20.1
More information about the pve-devel
mailing list