lint
This commit is contained in:
parent
b7a2201ad6
commit
28baba18d2
1 changed files with 3 additions and 1 deletions
|
@ -31,11 +31,13 @@ class BypassCensorship2(BaseModel):
|
||||||
class Config:
|
class Config:
|
||||||
title = "Bypass Censorship Version 2"
|
title = "Bypass Censorship Version 2"
|
||||||
|
|
||||||
|
|
||||||
def mirror_sites():
|
def mirror_sites():
|
||||||
return {
|
return {
|
||||||
"version": "2.0",
|
"version": "2.0",
|
||||||
"sites": [{
|
"sites": [{
|
||||||
"main_domain": x.description[len("proxy:"):].replace("www.", "") if x.description.startswith("proxy:") else x.domain_name.replace("www.", ""),
|
"main_domain": x.description[len("proxy:"):].replace("www.", "") if x.description.startswith(
|
||||||
|
"proxy:") else x.domain_name.replace("www.", ""),
|
||||||
"available_alternatives": [
|
"available_alternatives": [
|
||||||
{
|
{
|
||||||
"proto": "tor" if ".onion" in a.url else "https",
|
"proto": "tor" if ".onion" in a.url else "https",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue