From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 6DC976AFC9 for ; Sun, 19 Sep 2021 11:30:43 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 581C316093 for ; Sun, 19 Sep 2021 11:30:13 +0200 (CEST) Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 8953E1608A for ; Sun, 19 Sep 2021 11:30:08 +0200 (CEST) Received: from relay1-d.mail.gandi.net (unknown [217.70.183.193]) by mslow1.mail.gandi.net (Postfix) with ESMTP id F0A61C1D95 for ; Sun, 19 Sep 2021 09:10:03 +0000 (UTC) Received: (Authenticated sender: walter@kidja.tf) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 68955240008; Sun, 19 Sep 2021 09:09:37 +0000 (UTC) From: Xylle To: pve-devel@lists.proxmox.com Cc: Xylle Date: Sun, 19 Sep 2021 11:09:27 +0200 Message-Id: <20210919090927.15141-2-xylle@kidja.tf> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210919090927.15141-1-xylle@kidja.tf> References: <20210919090927.15141-1-xylle@kidja.tf> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 BAYES_00 -1.9 Bayes spam probability is 0 to 1% JMQ_SPF_NEUTRAL 0.5 SPF set to ?all KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_MSPIKE_H2 -0.001 Average reputation (+2) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-Mailman-Approved-At: Mon, 20 Sep 2021 10:40:31 +0200 Subject: [pve-devel] [PATCH dab 1/1] Add https support for download X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2021 09:30:43 -0000 --- 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