From 3242e762a8264a6895d825a58ed9343b590f6888 Mon Sep 17 00:00:00 2001 From: cxh Date: Mon, 29 Dec 2025 14:26:42 +0800 Subject: [PATCH] 1 --- 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 ebd7841..12f4ebf 100644 --- a/src/rtmp_manager.cpp +++ b/src/rtmp_manager.cpp @@ -20,7 +20,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 "";