Allow user to explicitly specify local (source) port
Created by: nhed
See https://github.com/miniupnp/miniupnp/issues/119
- Replace the
sameport
parameter to the upnpDiscover* functions withlocalport
- Added constants UPNP_LOCAL_PORT_ANY(0) & UPNP_LOCAL_PORT_SAME(1). The value "1" was chosen for presumed backwards compatibility with the previous "sameport" parameter (assuming usesr would have set to 1 if they wanted same port)
- Can be specified with
-z
to the test programsupnpc
&pymoduletest.py