Hi, Thanks for your patch. I see https://github.com/miniupnp/miniupnp/pull/562 which almost covers this patch, thus I will not include this patch and wait for the PR get merged in the next upstream version. Please check that PR to see if that fixes your issue.

