diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-09-23 12:30:02 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-09-23 15:41:49 +0000 |
commit | 9b4fa0af40cd88ed25dd77962235fbf268bdcaa7 (patch) | |
tree | 90da0d2256ca9b3a2af3dacebed89fc28eb20619 /src | |
parent | 9e217f5a6f08c50aff9975aa4c079e2aab2fe371 (diff) |
net: Print error message if -proxy is specified without arguments (instead of continuing without proxy server)
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 132acbfc81..ee9ec633b5 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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; } |