Skip to content

Commit

Permalink
update version, fix WASM build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Sep 25, 2021
1 parent 2d9ac2c commit 63c7d6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endif()
set(SCORE_VERSION_MAJOR 3)
set(SCORE_VERSION_MINOR 0)
set(SCORE_VERSION_PATCH 0)
set(SCORE_VERSION_EXTRA "b8")
set(SCORE_VERSION_EXTRA "b9")
set(SCORE_CODENAME "ratio")

set(SCORE_VERSION "${SCORE_VERSION_MAJOR}.${SCORE_VERSION_MINOR}.${SCORE_VERSION_PATCH}")
Expand Down
5 changes: 4 additions & 1 deletion src/lib/score/tools/ListNetworkAddresses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ namespace score

QStringList list_ipv4() noexcept
{
#ifndef QT_NO_NETWORKINTERFACE
QStringList ret;
for (const QNetworkInterface& iface : QNetworkInterface::allInterfaces())
for (const QNetworkAddressEntry& entry : iface.addressEntries())
if(const auto& ip = entry.ip(); ip.protocol() == QAbstractSocket::IPv4Protocol)
ret.push_back(ip.toString());
return ret;

#else
return {"127.0.0.1"};
#endif
/*
using namespace boost::asio;
using resolv = ip::udp::resolver;
Expand Down

0 comments on commit 63c7d6d

Please sign in to comment.