Skip to content
Snippets Groups Projects
Commit c3e9ada0 authored by akwizgran's avatar akwizgran
Browse files

Escaped a dot in the regex used to validate onion hostnames.

parent 37e68d5e
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,8 @@ class TorPlugin implements DuplexPlugin, EventHandler {
private static final int SOCKS_PORT = 59050, CONTROL_PORT = 59051;
private static final int COOKIE_TIMEOUT = 3000; // Milliseconds
private static final int HOSTNAME_TIMEOUT = 30 * 1000; // Milliseconds
private static final Pattern ONION = Pattern.compile("[a-z2-7]{16}.onion");
private static final Pattern ONION =
Pattern.compile("[a-z2-7]{16}\\.onion");
private static final Logger LOG =
Logger.getLogger(TorPlugin.class.getName());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment