mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 14:27:59 -05:00
Fix setting authority clearing host
This commit is contained in:
@@ -303,8 +303,7 @@ sub getMonitorRef {
|
|||||||
foreach my $monitor (@{$arrayref}) {
|
foreach my $monitor (@{$arrayref}) {
|
||||||
next if $$monitor{Type} eq 'Local';
|
next if $$monitor{Type} eq 'Local';
|
||||||
my $uri = URI->new($$monitor{Path});
|
my $uri = URI->new($$monitor{Path});
|
||||||
$uri->host('host') if $uri->host();
|
$uri->authority('username:password@host');
|
||||||
$uri->authority('username:password') if $uri->authority();
|
|
||||||
$$monitor{Path} = $uri->as_string();
|
$$monitor{Path} = $uri->as_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user