mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update ssl
This commit is contained in:
parent
ffd085581a
commit
29ce4c1526
@ -439,7 +439,7 @@ int main(int argc, char* argv[]) {
|
||||
funasr::ExtractHws(hotword_path, hws_map_);
|
||||
|
||||
bool is_ssl = false;
|
||||
if (!s_certfile.empty()) {
|
||||
if (!s_certfile.empty() && access(s_certfile.c_str(), F_OK) == 0) {
|
||||
is_ssl = true;
|
||||
}
|
||||
|
||||
|
||||
@ -419,7 +419,7 @@ int main(int argc, char* argv[]) {
|
||||
funasr::ExtractHws(hotword_path, hws_map_);
|
||||
|
||||
bool is_ssl = false;
|
||||
if (!s_certfile.empty()) {
|
||||
if (!s_certfile.empty() && access(s_certfile.c_str(), F_OK) == 0) {
|
||||
is_ssl = true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user