mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_update.pm: force using HTTPS ist SSL is installed. (Forum #74387)
git-svn-id: https://svn.fhem.de/fhem/trunk@14768 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f2b15e0cf4
commit
c25b400b6b
@ -29,6 +29,8 @@ my $upd_needJoin;
|
||||
my $upd_nChanged;
|
||||
my $upd_running;
|
||||
|
||||
eval "require IO::Socket::SSL"; # Forum #74387
|
||||
my $upd_hasSSL = $@ ? 0 : 1;
|
||||
|
||||
########################################
|
||||
sub
|
||||
@ -239,6 +241,7 @@ doUpdate($$$$)
|
||||
{
|
||||
my ($curr, $max, $src, $arg) = @_;
|
||||
my ($basePath, $ctrlFileName);
|
||||
$src =~ s'^http://fhem\.de'https://fhem.de' if($upd_hasSSL);
|
||||
if($src !~ m,^(.*)/([^/]*)$,) {
|
||||
uLog 1, "Cannot parse $src, probably not a valid http control file";
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user