Wire up PortMapper in Android

Enables UPnP port mapping for Android client on networks with UPnP routers
This commit is contained in:
Grant Limberg 2017-07-17 16:15:13 -07:00
parent b9e1d53d7a
commit bcf697cc2b
5 changed files with 89 additions and 20 deletions

View file

@ -26,6 +26,12 @@
#define UPNP_VERSION_STRING "UPnP/1.1"
#endif
#ifdef __ANDROID__
#define OS_STRING "Android"
#define MINIUPNPC_VERSION_STRING "2.0"
#define UPNP_VERSION_STRING "UPnP/1.1"
#endif
/* only for malloc */
#include <stdlib.h>

View file

@ -55,6 +55,12 @@
#define UPNP_VERSION_STRING "UPnP/1.1"
#endif
#ifdef __ANDROID__
#define OS_STRING "Android"
#define MINIUPNPC_VERSION_STRING "2.0"
#define UPNP_VERSION_STRING "UPnP/1.1"
#endif
#include "miniwget.h"
#include "connecthostport.h"
#include "receivedata.h"