瀏覽代碼

Merge branch 'main' of github.com:alibaba-damo-academy/FunASR
add

游雁 2 年之前
父節點
當前提交
862c521465
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      runtime/websocket/bin/funasr-wss-server-2pass.cpp
  2. 1 1
      runtime/websocket/bin/funasr-wss-server.cpp

+ 1 - 1
runtime/websocket/bin/funasr-wss-server-2pass.cpp

@@ -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;
     }
 

+ 1 - 1
runtime/websocket/bin/funasr-wss-server.cpp

@@ -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;
     }