return tuple for direct connection
This commit is contained in:
parent
515ee62836
commit
5c190ca8d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user