This commit is contained in:
cxh 2025-12-29 14:26:42 +08:00
parent d4531c99b0
commit 3242e762a8

View File

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