return tuple for direct connection

This commit is contained in:
Roy Olav Purser 2021-06-04 10:53:57 +02:00
parent 515ee62836
commit 5c190ca8d1
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -102,7 +102,7 @@ class UpstreamHandler():
self.upstream = None self.upstream = None
async def test_socks(self, proxy): async def test_socks(self, proxy):
if not isinstance(proxy, str): if not isinstance(proxy, str):
return True return (True, ProxyElem(None))
try: try:
splitted = proxy.rsplit(":", 1) splitted = proxy.rsplit(":", 1)
host = proxy host = proxy