Skip to content

Commit 7a65379

Browse files
committed
Add support for bypass_domain platform HTTP proxy option
1 parent 03d5304 commit 7a65379

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/io/nekohasekai/sfa/bg/VPNService.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import android.os.IBinder
99
import io.nekohasekai.libbox.TunOptions
1010
import io.nekohasekai.sfa.database.Settings
1111
import io.nekohasekai.sfa.ktx.toIpPrefix
12+
import io.nekohasekai.sfa.ktx.toList
1213
import kotlinx.coroutines.Dispatchers
1314
import kotlinx.coroutines.runBlocking
1415
import kotlinx.coroutines.withContext
@@ -165,7 +166,9 @@ class VPNService : VpnService(), PlatformInterfaceWrapper {
165166
systemProxyEnabled = Settings.systemProxyEnabled
166167
if (systemProxyEnabled) builder.setHttpProxy(
167168
ProxyInfo.buildDirectProxy(
168-
options.httpProxyServer, options.httpProxyServerPort
169+
options.httpProxyServer,
170+
options.httpProxyServerPort,
171+
options.httpProxyBypassDomain.toList()
169172
)
170173
)
171174
} else {

0 commit comments

Comments
 (0)