I just stopped it with Ctrl-C and it left UPnP forwards.
Hey @HelloZeroNet , looks like something I could check out in the next few days/weeks :)
miniupnpc https://github.com/miniupnp/miniupnp/tree/master/miniupnpc both creates UPnP forward, and deletes it successfully. Maybe you should just switch to this library, instead of doing it manually.
@yurivict I believe the main reason why the manual route was chosen was because it's a simple pure Python implementation. The benefits of that are:
I know it's not the best Python code out there, hence why I thought about refactoring it + adding in the feature requested in this issue.
That said, I've been out of the loop for a long time and @HelloZeroNet would have a better idea of which approach would be best here.
Quick update on this: finally got around to working on this. Currently adding some tests, then will refactor a few odd bits, and finally add code to signal the router to delete a port mapping.
Most helpful comment
Quick update on this: finally got around to working on this. Currently adding some tests, then will refactor a few odd bits, and finally add code to signal the router to delete a port mapping.