fix: captcha manual-pass link not opening and flags not persisting
- Captcha URL regex only matched login.vk.com/localhost:PORT, so when the local kernel logs the auth URL on 127.0.0.1:PORT instead, the captcha dialog never triggered. Regex and WebView domain whitelist now accept 127.0.0.1 as well. - Flag switches (VLESS, UDP, DTLS, etc.) only updated in-memory state and were lost on restart unless the user pressed "СОХРАНИТЬ ИЗМЕНЕНИЯ" afterwards. Toggling now saves the config immediately.
This commit is contained in:
3 files changed
+26
-4
No files matched your search
@@ -55,7 +55,7 @@ fun CaptchaWebViewDialog(captchaUrl: String, onDismiss: () -> Unit) {
|
||||
override fun shouldOverrideUrlLoading(view: WebView, request: WebResourceRequest): Boolean {
|
||||
val url = request.url.toString()
|
||||
// Allow all captcha-related domains to load inside WebView
|
||||
val allowedDomains = listOf("localhost", "fapi.vk.com", "login.vk.com", "api.vk.com", "captcha.vk.com", "vk.com", "vk.ru")
|
||||
val allowedDomains = listOf("localhost", "127.0.0.1", "fapi.vk.com", "login.vk.com", "api.vk.com", "captcha.vk.com", "vk.com", "vk.ru")
|
||||
val isAllowed = allowedDomains.any { url.contains(it) }
|
||||
// Only dismiss if navigating to a completely unrelated page
|
||||
if (!isAllowed) {
|
||||
|
||||
Reference in new issue
Block a user