diff --git a/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt b/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt index ae313a5..50f838b 100644 --- a/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt +++ b/app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt @@ -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 @@ -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 {