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