diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2017-07-17 16:15:13 -0700 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2017-07-17 16:16:25 -0700 |
commit | bcf697cc2bd0f49b3b6c5acd120dfc28537bd97c (patch) | |
tree | 5b6cae06b49dcbe1c4e3fdaa0b1a8b7e9e4a4c81 /ext | |
parent | b9e1d53d7ac4e8d19520e3063b194ee01f550198 (diff) | |
download | infinitytier-bcf697cc2bd0f49b3b6c5acd120dfc28537bd97c.tar.gz infinitytier-bcf697cc2bd0f49b3b6c5acd120dfc28537bd97c.zip |
Wire up PortMapper in Android
Enables UPnP port mapping for Android client on networks with UPnP routers
Diffstat (limited to 'ext')
-rw-r--r-- | ext/miniupnpc/minisoap.c | 6 | ||||
-rw-r--r-- | ext/miniupnpc/miniwget.c | 6 |
2 files changed, 12 insertions, 0 deletions
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 <stdlib.h> 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" |