Skip to content

Commit 2f796e5

Browse files
petertoddlaanwj
authored andcommitted
Better error message if Tor version too old
1 parent 8f4e67f commit 2f796e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/torcontrol.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,10 @@ void TorController::add_onion_cb(TorControlConnection& conn, const TorControlRep
408408
}
409409
AddLocal(service, LOCAL_MANUAL);
410410
// ... onion requested - keep connection open
411+
} else if (reply.code == 510) { // 510 Unrecognized command
412+
LogPrintf("[tor] Add onion failed with unrecognized command (You probably need to upgrade Tor)\n");
411413
} else {
412-
LogPrintf("[tor] Add onion failed\n");
414+
LogPrintf("[tor] Add onion failed; error code %d\n", reply.code);
413415
}
414416
}
415417

0 commit comments

Comments
 (0)