fix logic for direct connection

This commit is contained in:
Roy Olav Purser 2021-06-04 10:45:30 +02:00
parent a8aabc1812
commit 515ee62836
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -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