diff options
| author | Peter Todd <[email protected]> | 2015-08-26 21:43:18 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-11-10 17:29:56 +0100 |
| commit | 2f796e5fe7a51e4636600b320dc1995e048b4ba2 (patch) | |
| tree | 601c38fed5b020d97b8df73bd310e8a803b3e174 /src/torcontrol.cpp | |
| parent | net: Automatically create hidden service, listen on Tor (diff) | |
| download | discoin-2f796e5fe7a51e4636600b320dc1995e048b4ba2.tar.xz discoin-2f796e5fe7a51e4636600b320dc1995e048b4ba2.zip | |
Better error message if Tor version too old
Diffstat (limited to 'src/torcontrol.cpp')
| -rw-r--r-- | src/torcontrol.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp index bb72315c8..40ffbe61b 100644 --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -408,8 +408,10 @@ void TorController::add_onion_cb(TorControlConnection& conn, const TorControlRep } AddLocal(service, LOCAL_MANUAL); // ... onion requested - keep connection open + } else if (reply.code == 510) { // 510 Unrecognized command + LogPrintf("[tor] Add onion failed with unrecognized command (You probably need to upgrade Tor)\n"); } else { - LogPrintf("[tor] Add onion failed\n"); + LogPrintf("[tor] Add onion failed; error code %d\n", reply.code); } } |