rewrite accidental searches over TLS
This commit is contained in:
parent
5205fedde1
commit
3baff6a2ad
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue