From 2d412d2e9865c6a813c6239b8e3c31a8db8d8bfb Mon Sep 17 00:00:00 2001 From: cxh Date: Thu, 22 Jan 2026 10:21:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rtmp_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtmp_manager.cpp b/src/rtmp_manager.cpp index 38ca804..6b120ed 100644 --- a/src/rtmp_manager.cpp +++ b/src/rtmp_manager.cpp @@ -31,7 +31,7 @@ static bool device_exists(const std::string& path) } // 获取指定网卡 IPv4 -static std::string get_ip_address(const std::string& ifname) +std::string get_ip_address(const std::string& ifname) { struct ifaddrs* ifaddr = nullptr; if (getifaddrs(&ifaddr) != 0) return "";