diff --git a/backend/stream.py b/backend/stream.py index 803e514..d79dde6 100755 --- a/backend/stream.py +++ b/backend/stream.py @@ -98,9 +98,11 @@ class UpstreamHandler(): def __init__(self): self.provider = None self.valid = False - self.proxy = None + self.proxy = ProxyElem(None) self.upstream = None async def test_socks(self, proxy): + if not isinstance(proxy, str): + return True try: splitted = proxy.rsplit(":", 1) host = proxy