net: Print error message if -proxy is specified without arguments (instead of continuing without proxy server)

This commit is contained in:
practicalswift
2020-09-23 12:30:02 +00:00
parent 9e217f5a6f
commit 9b4fa0af40
2 changed files with 11 additions and 0 deletions

View File

@@ -1176,6 +1176,10 @@ bool AppInitParameterInteraction(const ArgsManager& args)
nMaxTipAge = args.GetArg("-maxtipage", DEFAULT_MAX_TIP_AGE);
if (args.IsArgSet("-proxy") && args.GetArg("-proxy", "").empty()) {
return InitError(_("No proxy server specified. Use -proxy=<ip> or -proxy=<ip:port>."));
}
return true;
}