Skip to content

Allow user to explicitly specify local (source) port

Thomas Bernard requested to merge nhed:master into master

Created by: nhed

See https://github.com/miniupnp/miniupnp/issues/119

  • Replace the sameport parameter to the upnpDiscover* functions with localport
  • 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 programs upnpc & pymoduletest.py

Merge request reports