Added --no-igd as an alias for --no-upnp

For compatibility with monerod command line parameters
This commit is contained in:
SChernykh 2023-03-21 19:31:18 +01:00
parent b30018bb38
commit c0586a5089
3 changed files with 3 additions and 1 deletions

View file

@ -27,6 +27,7 @@
--no-dns Disable DNS queries, use only IP addresses to connect to peers (seed node DNS will be unavailable too) --no-dns Disable DNS queries, use only IP addresses to connect to peers (seed node DNS will be unavailable too)
--p2p-external-port Port number that your router uses for mapping to your local p2p port. Use it if you are behind a NAT and still want to accept incoming connections --p2p-external-port Port number that your router uses for mapping to your local p2p port. Use it if you are behind a NAT and still want to accept incoming connections
--no-upnp Disable UPnP port forwarding --no-upnp Disable UPnP port forwarding
--no-igd An alias for --no-upnp
--upnp-stratum Port forward Stratum port (it's not forwarded by default) --upnp-stratum Port forward Stratum port (it's not forwarded by default)
``` ```

View file

@ -55,6 +55,7 @@ void p2pool_usage()
"--p2p-external-port Port number that your router uses for mapping to your local p2p port. Use it if you are behind a NAT and still want to accept incoming connections\n" "--p2p-external-port Port number that your router uses for mapping to your local p2p port. Use it if you are behind a NAT and still want to accept incoming connections\n"
#ifdef WITH_UPNP #ifdef WITH_UPNP
"--no-upnp Disable UPnP port forwarding\n" "--no-upnp Disable UPnP port forwarding\n"
"--no-igd An alias for --no-upnp\n"
"--upnp-stratum Port forward Stratum port (it's not forwarded by default)\n" "--upnp-stratum Port forward Stratum port (it's not forwarded by default)\n"
#endif #endif
"--help Show this help message\n\n" "--help Show this help message\n\n"

View file

@ -154,7 +154,7 @@ Params::Params(int argc, char* argv[])
} }
#ifdef WITH_UPNP #ifdef WITH_UPNP
if (strcmp(argv[i], "--no-upnp") == 0) { if ((strcmp(argv[i], "--no-upnp") == 0) || (strcmp(argv[i], "--no-igd") == 0)) {
m_upnp = false; m_upnp = false;
ok = true; ok = true;
} }