Pre Qt 5.14 compatibility

This commit is contained in:
Bill Somerville 2020-11-03 23:14:26 +00:00
parent e538ce9294
commit 50cce43e92
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -169,7 +169,11 @@ public:
connect (server_, &MessageServer::client_opened, this, &Server::add_client);
connect (server_, &MessageServer::client_closed, this, &Server::remove_client);
#if QT_VERSION >= 0x051400
server_->start (port, multicast_group, QSet<QString> {network_interface_names.begin (), network_interface_names.end ()});
#else
server_->start (port, multicast_group, network_interface_names.toSet ());
#endif
}
private: