Fix wrong assertion on network interface

This commit is contained in:
patrick96 2021-09-21 21:08:21 +02:00 committed by Patrick Ziegler
parent 98919cbb77
commit 560065540b

View File

@ -99,7 +99,7 @@ namespace net {
* Construct network interface * Construct network interface
*/ */
network::network(string interface) : m_log(logger::make()), m_interface(move(interface)) { network::network(string interface) : m_log(logger::make()), m_interface(move(interface)) {
assert(is_virtual(interface)); assert(is_interface_valid(m_interface));
m_socketfd = file_util::make_file_descriptor(socket(AF_INET, SOCK_DGRAM, 0)); m_socketfd = file_util::make_file_descriptor(socket(AF_INET, SOCK_DGRAM, 0));
if (!*m_socketfd) { if (!*m_socketfd) {