From 5c190ca8d126b46a56cc23b3668cf4a6d8b2e2d2 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 4 Jun 2021 10:53:57 +0200 Subject: [PATCH] return tuple for direct connection --- backend/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/stream.py b/backend/stream.py index d79dde6..351a167 100755 --- a/backend/stream.py +++ b/backend/stream.py @@ -102,7 +102,7 @@ class UpstreamHandler(): self.upstream = None async def test_socks(self, proxy): if not isinstance(proxy, str): - return True + return (True, ProxyElem(None)) try: splitted = proxy.rsplit(":", 1) host = proxy