From 27f31cd42bb4e20dc19de0034fc0d80b449f1db1 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 06 十二月 2023 17:01:12 +0800
Subject: [PATCH] funasr2
---
runtime/websocket/bin/funasr-wss-server.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/runtime/websocket/bin/funasr-wss-server.cpp b/runtime/websocket/bin/funasr-wss-server.cpp
index 8d4cc99..2732add 100644
--- a/runtime/websocket/bin/funasr-wss-server.cpp
+++ b/runtime/websocket/bin/funasr-wss-server.cpp
@@ -419,7 +419,7 @@
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;
}
--
Gitblit v1.9.1