Skip to content

Commit 2f0e9c6

Browse files
committed
Add support for bypass_domain platform HTTP proxy option
1 parent 5c02921 commit 2f0e9c6

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
@@ -169,7 +170,9 @@ class VPNService : VpnService(), PlatformInterfaceWrapper {
169170
systemProxyEnabled = Settings.systemProxyEnabled
170171
if (systemProxyEnabled) builder.setHttpProxy(
171172
ProxyInfo.buildDirectProxy(
172-
options.httpProxyServer, options.httpProxyServerPort
173+
options.httpProxyServer,
174+
options.httpProxyServerPort,
175+
options.httpProxyBypassDomain.toList()
173176
)
174177
)
175178
} else {

0 commit comments

Comments
 (0)