Use strings rather than hashes to identify transports. Dev task #64.

This commit is contained in:
akwizgran
2014-01-24 10:39:34 +00:00
parent 468db2a97b
commit 822392f9e7
26 changed files with 115 additions and 172 deletions

View File

@@ -53,11 +53,7 @@ import android.os.FileObserver;
class TorPlugin implements DuplexPlugin, EventHandler {
static final byte[] TRANSPORT_ID =
StringUtils.fromHexString("fa866296495c73a52e6a82fd12db6f15"
+ "47753b5e636bb8b24975780d7d2e3fc2"
+ "d32a4c480c74de2dc6e3157a632a0287");
static final TransportId ID = new TransportId(TRANSPORT_ID);
static final TransportId ID = new TransportId("tor");
private static final int SOCKS_PORT = 59050, CONTROL_PORT = 59051;
private static final int COOKIE_TIMEOUT = 3000; // Milliseconds
@@ -108,10 +104,6 @@ class TorPlugin implements DuplexPlugin, EventHandler {
return ID;
}
public String getName() {
return "TOR_PLUGIN_NAME";
}
public int getMaxFrameLength() {
return maxFrameLength;
}