Skip to content

Commit

Permalink
use new jtorctl constants for Tor event names
Browse files Browse the repository at this point in the history
These include javadoc with links to the documentation.
  • Loading branch information
eighthave committed May 4, 2021
1 parent f738497 commit afb3ae7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,13 @@ public void addEventHandler() {
try {
logNotice("adding control port event handler");
conn.setEventHandler(mEventHandler);
conn.setEvents(Arrays.asList("ORCONN", "CIRC", "NOTICE", "WARN", "ERR", "BW"));
conn.setEvents(Arrays.asList(
TorControlCommands.EVENT_OR_CONN_STATUS,
TorControlCommands.EVENT_CIRCUIT_STATUS,
TorControlCommands.EVENT_NOTICE_MSG,
TorControlCommands.EVENT_WARN_MSG,
TorControlCommands.EVENT_ERR_MSG,
TorControlCommands.EVENT_BANDWIDTH_USED));
logNotice("SUCCESS added control port event handler");
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit afb3ae7

Please sign in to comment.