rewrite accidental searches over TLS
This commit is contained in:
parent
5205fedde1
commit
3baff6a2ad
@ -126,4 +126,9 @@ def intercept(info: interceptor.Request) -> None:
|
|||||||
new_url.setScheme('http')
|
new_url.setScheme('http')
|
||||||
info.redirect(new_url)
|
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)
|
interceptor.register(intercept)
|
||||||
|
Loading…
Reference in New Issue
Block a user