From f47c908c88875c32fd4c624aeecefbf660c17e85 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 19 May 2023 12:28:24 +0200 Subject: cleanup and comments --- app/java/src/DNSProxyConnection.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/java/src/DNSProxyConnection.java') 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(); -- cgit v1.2.3