diff --git a/docs/COMMAND_LINE.MD b/docs/COMMAND_LINE.MD index 2aa7a2a..293a37f 100644 --- a/docs/COMMAND_LINE.MD +++ b/docs/COMMAND_LINE.MD @@ -27,6 +27,7 @@ --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 --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) ``` diff --git a/src/main.cpp b/src/main.cpp index 1e424ea..78f9709 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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" #ifdef WITH_UPNP "--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" #endif "--help Show this help message\n\n" diff --git a/src/params.cpp b/src/params.cpp index a37f7ca..bae8beb 100644 --- a/src/params.cpp +++ b/src/params.cpp @@ -154,7 +154,7 @@ Params::Params(int argc, char* argv[]) } #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; ok = true; }