Skip to content

Commit

Permalink
rename and fix typo of V2rayCostumConfig class
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed Feb 28, 2024
1 parent e7c27ae commit 1a9dcd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/subscription/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from .v2ray import V2rayCostumConfig, V2rayShareLink
from .v2ray import V2rayJsonConfig, V2rayShareLink
from .singbox import SingBoxConfiguration
from .outline import OutlineConfiguration
from .clash import ClashConfiguration, ClashMetaConfiguration

__all__ = [
"V2rayCostumConfig",
"V2rayJsonConfig",
"V2rayShareLink",
"SingBoxConfiguration",
"OutlineConfiguration",
"ClashConfiguration",
"ClashMetaConfiguration",
]
]
2 changes: 1 addition & 1 deletion app/subscription/share.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def generate_outline_subscription(
def generate_v2ray_custom_subscription(
proxies: dict, inbounds: dict, extra_data: dict
) -> str:
conf = V2rayCostumConfig()
conf = V2rayJsonConfig()

format_variables = setup_format_variables(extra_data)
return process_inbounds_and_tags(
Expand Down
6 changes: 3 additions & 3 deletions app/subscription/v2ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def trojan(cls,
spx='',
ais='',
fs="",
):
):

payload = {
"security": tls,
Expand Down Expand Up @@ -200,7 +200,7 @@ def shadowsocks(
)


class V2rayCostumConfig(str):
class V2rayJsonConfig(str):

def __init__(self):
self.config = []
Expand Down Expand Up @@ -579,4 +579,4 @@ def add(self, remark: str, address: str, inbound: dict, settings: dict):
outbound["mux"]["enabled"] = bool(inbound.get('mux_enable', False))

self.add_outbound(remarks=remark, outbound_data=outbound,
proxy_outbound=inbound.get('proxy_outbound', ''))
proxy_outbound=inbound.get('proxy_outbound', ''))

0 comments on commit 1a9dcd1

Please sign in to comment.