|
@@ -6,7 +6,6 @@ import java.util.ArrayList;
|
|
|
import java.util.Iterator;
|
|
|
|
|
|
import javax.net.ssl.SSLContext;
|
|
|
-import javax.net.ssl.SSLServerSocket;
|
|
|
import javax.net.ssl.SSLSocket;
|
|
|
import javax.net.ssl.SSLSocketFactory;
|
|
|
|
|
@@ -67,17 +66,8 @@ public class HoneyListener implements Runnable {
|
|
|
|
|
|
public void start() {
|
|
|
try {
|
|
|
- if (protocol.isSecure())
|
|
|
- // TODO
|
|
|
- // server = new MyServerSocketFactory().createServerSocket(
|
|
|
- // protocol.getPort(), ((SSLProtocol)
|
|
|
- // protocol).getSSLContext());
|
|
|
- server = ((SSLProtocol) protocol)
|
|
|
- .getSSLContext().getServerSocketFactory()
|
|
|
- .createServerSocket(protocol.getPort());
|
|
|
- else
|
|
|
- server = new MyServerSocketFactory()
|
|
|
- .createServerSocket(protocol.getPort());
|
|
|
+ server = new MyServerSocketFactory().createServerSocket(protocol
|
|
|
+ .getPort());
|
|
|
(this.thread = new Thread(this)).start();
|
|
|
editor.putBoolean(protocol + MainActivity.LISTENER, true);
|
|
|
editor.commit();
|