Skip to content

Commit

Permalink
Improve detected pem_file_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jul 6, 2024
1 parent 0af346c commit 93533b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4480,6 +4480,11 @@ R"x*x*x(<html>
type = pem_type::key;
break;
}
if (line.find("-----BEGIN PRIVATE KEY-----") != std::string::npos)
{
type = pem_type::key;
break;
}
}
result.type_ = type;

Expand Down

0 comments on commit 93533b7

Please sign in to comment.