Skip to content

Commit

Permalink
fix: xray and singbox classes shouldn't be string
Browse files Browse the repository at this point in the history
  • Loading branch information
khodedawsh committed Jun 6, 2024
1 parent 02af278 commit 4d8c304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v2share/singbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from v2share.data import V2Data


class SingBoxConfig(str):
class SingBoxConfig:
def __init__(self, template_path: str = None):
if not template_path:
template_path = resources.files("v2share.templates") / "singbox.json"
Expand Down
3 changes: 1 addition & 2 deletions v2share/xray.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from v2share.data import V2Data


class XrayConfig(str):

class XrayConfig:
def __init__(self, template_path: str = None, mux_template_path: str = None):
self.config = []
if not template_path:
Expand Down

0 comments on commit 4d8c304

Please sign in to comment.