summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-05-27 22:51:40 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2023-10-19 22:54:24 +0200
commitf5e8e70e35e75c72eb2a38fe7e3edb488ae7662a (patch)
tree07b21b0e9472d5b5f003418b086c95f588093c8e
parent051cf447d58ee570017c0c57f46984d4977bd971 (diff)
WIP: pac file download
-rw-r--r--tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java3
1 files changed, 2 insertions, 1 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 74d1c553..cf88aa2a 100644
--- a/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java
+++ b/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java
@@ -566,7 +566,8 @@ public final class GoBackend implements Backend {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
if (pacFileUrl != null && pacFileUrl != Uri.EMPTY) {
- int listenPort = startHttpProxy(pacFileUrl);
+ String pacFile = downloadPacFile(activeNetwork, pacFileUrl);
+ int listenPort = startHttpProxy(pacFile);
ProxyInfo localPi = ProxyInfo.buildDirectProxy("localhost", listenPort);
builder.setHttpProxy(localPi);
} else {