Skip to content

Commit

Permalink
Add support for bypass_domain platform HTTP proxy option
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Apr 23, 2024
1 parent 288a6f3 commit 503425c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import android.os.IBinder
import io.nekohasekai.libbox.TunOptions
import io.nekohasekai.sfa.database.Settings
import io.nekohasekai.sfa.ktx.toIpPrefix
import io.nekohasekai.sfa.ktx.toList
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withContext
Expand Down Expand Up @@ -169,7 +170,9 @@ class VPNService : VpnService(), PlatformInterfaceWrapper {
systemProxyEnabled = Settings.systemProxyEnabled
if (systemProxyEnabled) builder.setHttpProxy(
ProxyInfo.buildDirectProxy(
options.httpProxyServer, options.httpProxyServerPort
options.httpProxyServer,
options.httpProxyServerPort,
options.httpProxyBypassDomain.toList()
)
)
} else {
Expand Down

0 comments on commit 503425c

Please sign in to comment.