NATPMP and proxy support in libcoin



Summary:

Michael has added NATPMP along with IDG UPnP to libcoin, which enables the setup of port mapping on Apple routers and other routers that support this protocol. The libcoin/bitcoind first tries to set up mapping using UPnP, and if that fails, it resorts to using PMP. It chooses a default lease time of 20 minutes and renews it every 10 minutes. The inclusion of portmapping in libcoin/bitcoind requires only the addition and starting of the PortMapper class. Michael has included relevant portions of miniupnpc and libnatpmp in the coinNAT library to make it easier to build. He has also made an aggressive setting for quitting searching for an IGD device (3 seconds). Michael has added proxy capability to libcoin, and interested parties can view the implementation details in coinChain/Proxy.h. The portmap option is now used instead of the upnp command line option.


Updated on: 2023-06-06T03:29:48.236794+00:00