summaryrefslogtreecommitdiff
path: root/app/java/src/DNSProxyConnection.java
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-05-19 12:28:24 +0200
committerDaniel Weipert <code@drogueronin.de>2023-05-19 12:28:24 +0200
commitf47c908c88875c32fd4c624aeecefbf660c17e85 (patch)
tree659fd0d6a854d9af06275172e21a8e9e9fc8cc65 /app/java/src/DNSProxyConnection.java
parent309993eec6085cfa0e112cd5f45c8c55beeee5db (diff)
cleanup and comments
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();