fix logic for direct connection
This commit is contained in:
parent
a8aabc1812
commit
515ee62836
@ -98,9 +98,11 @@ class UpstreamHandler():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.provider = None
|
self.provider = None
|
||||||
self.valid = False
|
self.valid = False
|
||||||
self.proxy = None
|
self.proxy = ProxyElem(None)
|
||||||
self.upstream = None
|
self.upstream = None
|
||||||
async def test_socks(self, proxy):
|
async def test_socks(self, proxy):
|
||||||
|
if not isinstance(proxy, str):
|
||||||
|
return True
|
||||||
try:
|
try:
|
||||||
splitted = proxy.rsplit(":", 1)
|
splitted = proxy.rsplit(":", 1)
|
||||||
host = proxy
|
host = proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user