Remove unneeded test for :80

pull/2842/head
Isaac Connor 2020-02-18 15:10:44 -05:00
parent 789db4e5a6
commit 9a21ebf696
1 changed files with 0 additions and 5 deletions

View File

@ -72,11 +72,6 @@ sub open {
( $username, $password ) = $uri->authority() =~ /^(.*):(.*)@(.*)$/;
$$self{address} = $uri->authority().($uri->port() ? ':'.$uri->port() : '');
if ( $$self{address} !~ /:/ ) {
Debug('Adding default port to Control Address');
$$self{address} .= ':80';
$self->{Monitor}->{ControlDevice} .= ':80';
}
$self->{ua}->credentials($$self{address}, $realm, $username, $password);
# Testing seems to show that we need the username/password in each url as well as credentials
$$self{base_url} = $self->{Monitor}->{ControlAddress};