Better error message for SSH private key select box
This commit is contained in:
@@ -353,12 +353,14 @@ const initialFieldDef = {
|
||||
let firstLineReaded = false;
|
||||
|
||||
for (let i in lines) {
|
||||
if (!firstLineReaded && lines[i].indexOf("-") === 0) {
|
||||
if (!firstLineReaded) {
|
||||
if (lines[i].indexOf("-") === 0) {
|
||||
firstLineReaded = true;
|
||||
|
||||
if (lines[i].indexOf("RSA") < 0) {
|
||||
if (lines[i].indexOf("RSA") <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user