Fix setting authority clearing host

This commit is contained in:
Isaac Connor
2025-12-22 09:49:37 -05:00
parent adfcbd1d69
commit 43f2525fdf

View File

@@ -303,8 +303,7 @@ sub getMonitorRef {
foreach my $monitor (@{$arrayref}) {
next if $$monitor{Type} eq 'Local';
my $uri = URI->new($$monitor{Path});
$uri->host('host') if $uri->host();
$uri->authority('username:password') if $uri->authority();
$uri->authority('username:password@host');
$$monitor{Path} = $uri->as_string();
}