From bcf697cc2bd0f49b3b6c5acd120dfc28537bd97c Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 17 Jul 2017 16:15:13 -0700 Subject: Wire up PortMapper in Android Enables UPnP port mapping for Android client on networks with UPnP routers --- ext/miniupnpc/minisoap.c | 6 ++++++ ext/miniupnpc/miniwget.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'ext') diff --git a/ext/miniupnpc/minisoap.c b/ext/miniupnpc/minisoap.c index 7aa0213e..01102a01 100644 --- a/ext/miniupnpc/minisoap.c +++ b/ext/miniupnpc/minisoap.c @@ -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 diff --git a/ext/miniupnpc/miniwget.c b/ext/miniupnpc/miniwget.c index 93c8aa6b..dfa6004e 100644 --- a/ext/miniupnpc/miniwget.c +++ b/ext/miniupnpc/miniwget.c @@ -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" -- cgit v1.2.3