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/DNSProxyRunner.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'app/java/src/DNSProxyRunner.java') diff --git a/app/java/src/DNSProxyRunner.java b/app/java/src/DNSProxyRunner.java index 6a45413..dd0e3e5 100644 --- a/app/java/src/DNSProxyRunner.java +++ b/app/java/src/DNSProxyRunner.java @@ -6,15 +6,6 @@ import android.os.ParcelFileDescriptor; import android.util.Log; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; - -import java.net.InetSocketAddress; -import java.net.SocketAddress; - -import java.nio.channels.DatagramChannel; - public class DNSProxyRunner implements Runnable { public interface OnEstablishListener { @@ -43,6 +34,9 @@ public class DNSProxyRunner implements Runnable { } } + /** + * Callback when proxy connection is established + */ public void setOnEstablishListener(OnEstablishListener listener) { this.onEstablishListener = listener; } -- cgit v1.2.3