mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
net: Print error message if -proxy is specified without arguments (instead of continuing without proxy server)
This commit is contained in:
parent
9e217f5a6f
commit
9b4fa0af40
2 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue