Skip to content

Commit e60aeb3

Browse files
committed
Support other popular local dev HTTP ports
1 parent 509f6dd commit e60aeb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/main/java/tech/httptoolkit/android/ProxyVpnService.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ class ProxyVpnService : VpnService(), IProtectSocket {
172172
vpnInterface!!,
173173
proxyConfig.ip,
174174
proxyConfig.port,
175-
intArrayOf(80, 443)
175+
intArrayOf(
176+
80, // HTTP
177+
443, // HTTPS
178+
8000, 8001, 8080, 8888, 9000 // Common local dev ports
179+
)
176180
)
177181
Thread(vpnRunnable, "Vpn thread").start()
178182
}

0 commit comments

Comments
 (0)