summaryrefslogtreecommitdiff
path: root/app/java/src/DNSProxyConnection.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/java/src/DNSProxyConnection.java')
-rw-r--r--app/java/src/DNSProxyConnection.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/java/src/DNSProxyConnection.java b/app/java/src/DNSProxyConnection.java
index 0573515..420b5fc 100644
--- a/app/java/src/DNSProxyConnection.java
+++ b/app/java/src/DNSProxyConnection.java
@@ -6,7 +6,7 @@ import android.util.Log;
public class DNSProxyConnection {
- public static String THREAD_NAME = "org.pihole.dnsproxy.service.thread";
+ public static String THREAD_NAME = "org.pihole.dnsproxy.service.dnsproxy.thread";
private DNSProxyService service;
private Thread thread;
@@ -16,6 +16,9 @@ public class DNSProxyConnection {
this.service = service;
}
+ /**
+ * Setup and start the connection
+ */
public void start() {
DNSProxyRunner runner = new DNSProxyRunner(this.service);
runner.setOnEstablishListener(tunInterface -> {
@@ -26,6 +29,9 @@ public class DNSProxyConnection {
this.thread.start();
}
+ /**
+ * Stop and close the connection
+ */
public void stop() {
try {
this.thread.interrupt();