js-libp2p
js-libp2p copied to clipboard
fix: map ports via uPnP when addresses change
Refactors the uPnP port mapper to map ports when addresses change instead of once at startup.
This is because some addresses are not open at startup and only become available some time later.