summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-10-22 23:02:46 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2023-10-22 23:02:46 +0200
commite43facb660e62380c0f317d510e4fdc5b5648b6a (patch)
tree039280df70af1b2041f9443141945ce6203c7efd
parentfeed07d5bfd96a8f68b6da69bca674c54f9c74c0 (diff)
WIP: log proxy info
-rw-r--r--tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java b/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java
index 2af43fb2..120038a3 100644
--- a/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java
+++ b/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java
@@ -654,8 +654,10 @@ public final class GoBackend implements Backend {
String pacFile = downloadPacFile(activeNetwork, pacFileUrl);
int listenPort = startHttpProxy(pacFile);
ProxyInfo localPi = ProxyInfo.buildDirectProxy("localhost", listenPort);
+ Log.i(TAG, "setHttpProxy: http://" + localPi.getHost() + ":" + localPi.getPort() + "/");
builder.setHttpProxy(localPi);
} else {
+ Log.i(TAG, "setHttpProxy: http://" + pi.getHost() + ":" + pi.getPort() + "/");
builder.setHttpProxy(pi);
}
}