소스 검색

small fixes

root 1 년 전
부모
커밋
4cbd1e7b96
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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};