New upstream version 8.1.0

This commit is contained in:
geos_one
2025-08-10 01:34:16 +02:00
commit c891bb7105
4398 changed files with 838833 additions and 0 deletions

17
common/tests/TestNIC.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include <common/net/sock/NetworkInterfaceCard.h>
#include <gtest/gtest.h>
TEST(NIC, nic)
{
NicAddressList list;
StringList allowedInterfaces;
ASSERT_TRUE(NetworkInterfaceCard::findAll(&allowedInterfaces, true, &list));
ASSERT_FALSE(list.empty());
NicAddress nicAddr;
ASSERT_TRUE(NetworkInterfaceCard::findByName(list.begin()->name, &nicAddr));
}