Skip to content

Commit 43f2525

Browse files
Fix setting authority clearing host
1 parent adfcbd1 commit 43f2525

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/zmtelemetry.pl.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@ sub getMonitorRef {
303303
foreach my $monitor (@{$arrayref}) {
304304
next if $$monitor{Type} eq 'Local';
305305
my $uri = URI->new($$monitor{Path});
306-
$uri->host('host') if $uri->host();
307-
$uri->authority('username:password') if $uri->authority();
306+
$uri->authority('username:password@host');
308307
$$monitor{Path} = $uri->as_string();
309308
}
310309

0 commit comments

Comments
 (0)