support the old use of just putting the password in the control field
This commit is contained in:
parent
e8114c90bb
commit
246fadb097
|
@ -114,6 +114,10 @@ sub sendCmd
|
|||
my $result = undef;
|
||||
|
||||
my ($user, $password) = split /:/, $self->{Monitor}->{ControlDevice};
|
||||
if ( ! $password ) {
|
||||
$password = $user;
|
||||
$user = 'admin';
|
||||
}
|
||||
$user = 'admin' if ! $user;
|
||||
$password = 'pwd' if ! $password;
|
||||
|
||||
|
|
Loading…
Reference in New Issue