diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-05-27 22:51:40 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-10-24 21:57:35 +0200 |
commit | f0b4783e2c82bcbada1a315bc85278aa66052fd7 (patch) | |
tree | ef29b5e9ace757b7d89c898e3c3910d80c72f762 /tunnel | |
parent | 566b9f6f58ca87668b32953700bbf5b0a218b3d6 (diff) |
WIP: pac file download
Diffstat (limited to 'tunnel')
-rw-r--r-- | tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java | 3 |
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 { |