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

@@ -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;
}