Browse Source

small fixes

root 1 year ago
parent
commit
4cbd1e7b96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/eyelib/main.pm

+ 1 - 1
scripts/eyelib/main.pm

@@ -563,7 +563,7 @@ $device->{enable_password}='';
 $device->{proto} = 'ssh';
 $device->{proto} = 'telnet' if ($device->{protocol} eq '1');
 #patch for ssh
-if ($device->{proto} == 'ssh' and exists $switch_auth{$device->{vendor_id}}{proto}) {
+if ($device->{proto} eq 'ssh' and exists $switch_auth{$device->{vendor_id}}{proto}) {
 	#set specified ssh type
 	if ($switch_auth{$device->{vendor_id}}{proto} =~/ssh/i) {
 		$device->{proto} = $switch_auth{$device->{vendor_id}}{proto};