Comment 2 for bug 1533384

Revision history for this message
Yangfl (mmyangfl) wrote :

Your idea is worthwhile. However, the problem remains: which one is your wan ip? In your case it's the first one, in others' it may be the second one, the third one, that could be endless, not to say in some extreme situations, such ip will not show on the interface (behind DNAT). Much worse, miniupnpd itself will detect wan ip within the program when you don't tell it the external ip, which is far from init script can manage.

By the way, multiple external IP is yet another buggy thing which I'm not going to fix (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685649#32 ).

Nevertheless, I will try to figure out how miniupnpd detects external ip and make init script behave the same as it (which might be just exactly '-m 1').