From 5b3d99bb9234b9b8c9070d085e726e9a704d8cac Mon Sep 17 00:00:00 2001 From: chdahuzi Date: Tue, 19 Dec 2023 17:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96web=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E6=95=B4=E5=88=B0=E5=90=AF=E5=8A=A8=E7=9B=91?= =?UTF-8?q?=E5=90=AC=E7=AB=AF=E5=8F=A3=E6=9C=8D=E5=8A=A1=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E7=A8=8B=E5=BA=8F=E5=88=9A=E5=88=9A?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=97=B6=E7=A0=81=E6=B5=81=E6=9C=AA=E7=BB=8F?= =?UTF-8?q?=E9=89=B4=E6=9D=83=E5=B0=B1=E8=A2=AB=E5=85=81=E8=AE=B8=E6=8E=A8?= =?UTF-8?q?=E6=B5=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/main.cpp b/server/main.cpp index 1b2f4b1a..c946beab 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -346,6 +346,11 @@ int start_main(int argc,char *argv[]) { uint16_t srtPort = mINI::Instance()[SRT::kPort]; #endif //defined(ENABLE_SRT) + installWebApi(); + InfoL << "已启动http api 接口"; + installWebHook(); + InfoL << "已启动http hook 接口"; + try { auto &secret = mINI::Instance()[API::kSecret]; if (secret == "035c73f7-bb6b-4889-a715-d9eb2d1925cc" || secret.empty()) { @@ -403,11 +408,6 @@ int start_main(int argc,char *argv[]) { return -1; } - installWebApi(); - InfoL << "已启动http api 接口"; - installWebHook(); - InfoL << "已启动http hook 接口"; - //设置退出信号处理函数 static semaphore sem; signal(SIGINT, [](int) {