From 2d5883ccc952edefb264f6de9d9f4dfbce8520b7 Mon Sep 17 00:00:00 2001 From: sehraf Date: Tue, 7 Jun 2016 16:30:39 +0200 Subject: [PATCH] add UPnP lib version --- libretroshare/src/rsserver/p3face-info.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libretroshare/src/rsserver/p3face-info.cc b/libretroshare/src/rsserver/p3face-info.cc index 62882d861..a94368a93 100644 --- a/libretroshare/src/rsserver/p3face-info.cc +++ b/libretroshare/src/rsserver/p3face-info.cc @@ -35,6 +35,14 @@ #include #endif +#ifndef RS_ENABLE_ZCNATASSIST +#ifdef RS_USE_LIBUPNP +#include "upnp/upnpconfig.h" +#else +#include "miniupnpc/miniupnpc.h" +#endif // RS_USE_LIBUPNP +#endif // RS_ENABLE_ZCNATASSIST + std::string RsServer::getSQLCipherVersion() { sqlite3* mDb; @@ -84,5 +92,12 @@ void RsServer::getLibraries(std::list &libraries) #ifndef NO_SQLCIPHER libraries.push_back(RsLibraryInfo("SQLCipher", getSQLCipherVersion())); #endif +#ifndef RS_ENABLE_ZCNATASSIST +#ifdef RS_USE_LIBUPNP + libraries.push_back(RsLibraryInfo("UPnP (libupnp)", UPNP_VERSION_STRING)); +#else + libraries.push_back(RsLibraryInfo("UPnP (MiniUPnP)", MINIUPNPC_VERSION)); +#endif // RS_USE_LIBUPNP +#endif // RS_ENABLE_ZCNATASSIST libraries.push_back(RsLibraryInfo("Zlib", ZLIB_VERSION)); }