rewrite accidental searches over TLS

This commit is contained in:
Felix Van der Jeugt 2020-09-28 16:51:36 +02:00
parent 5205fedde1
commit 3baff6a2ad
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 5 additions and 0 deletions

View File

@ -126,4 +126,9 @@ def intercept(info: interceptor.Request) -> None:
new_url.setScheme('http')
info.redirect(new_url)
elif 'juy4e6eicawzdrz7.onion' == info.request_url.host() and 'https' == info.request_url.scheme():
new_url = QUrl(info.request_url)
new_url.setScheme('http')
info.redirect(new_url)
interceptor.register(intercept)