support the old use of just putting the password in the control field

This commit is contained in:
Isaac Connor 2015-05-13 08:23:16 -04:00
parent e8114c90bb
commit 246fadb097
1 changed files with 4 additions and 0 deletions

View File

@ -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;