|
@@ -236,12 +236,12 @@ class TlsPlugin(IVSPlg):
|
|
|
p = self.config.proxy
|
|
p = self.config.proxy
|
|
|
if p.username and p.password:
|
|
if p.username and p.password:
|
|
|
proxy_cfg = {
|
|
proxy_cfg = {
|
|
|
- "server": f"{p.scheme}://{p.ip}:{p.port}",
|
|
|
|
|
|
|
+ "server": f"{p.proto}://{p.ip}:{p.port}",
|
|
|
"username": p.username,
|
|
"username": p.username,
|
|
|
"password": p.password,
|
|
"password": p.password,
|
|
|
}
|
|
}
|
|
|
else:
|
|
else:
|
|
|
- proxy_cfg = {"server": f"{p.scheme}://{p.ip}:{p.port}"}
|
|
|
|
|
|
|
+ proxy_cfg = {"server": f"{p.proto}://{p.ip}:{p.port}"}
|
|
|
else:
|
|
else:
|
|
|
self._log("[WARN] No proxy configured!")
|
|
self._log("[WARN] No proxy configured!")
|
|
|
|
|
|
|
@@ -756,9 +756,9 @@ class TlsPlugin(IVSPlg):
|
|
|
if self.config.proxy.ip:
|
|
if self.config.proxy.ip:
|
|
|
s = self.config.proxy
|
|
s = self.config.proxy
|
|
|
if s.username:
|
|
if s.username:
|
|
|
- proxy_url = f"{s.scheme}://{s.username}:{s.password}@{s.ip}:{s.port}"
|
|
|
|
|
|
|
+ proxy_url = f"{s.proto}://{s.username}:{s.password}@{s.ip}:{s.port}"
|
|
|
else:
|
|
else:
|
|
|
- proxy_url = f"{s.scheme}://{s.ip}:{s.port}"
|
|
|
|
|
|
|
+ proxy_url = f"{s.proto}://{s.ip}:{s.port}"
|
|
|
return proxy_url
|
|
return proxy_url
|
|
|
|
|
|
|
|
def _perform_request(self, method, url, headers=None, data=None, json_data=None, params=None, retry_count=0):
|
|
def _perform_request(self, method, url, headers=None, data=None, json_data=None, params=None, retry_count=0):
|
|
@@ -892,7 +892,7 @@ class TlsPlugin(IVSPlg):
|
|
|
|
|
|
|
|
# if params.get("proxy"):
|
|
# if params.get("proxy"):
|
|
|
# p = urlparse(params.get("proxy"))
|
|
# p = urlparse(params.get("proxy"))
|
|
|
- # task["proxyType"] = p.scheme
|
|
|
|
|
|
|
+ # task["proxyType"] = p.proto
|
|
|
# task["proxyAddress"] = p.hostname
|
|
# task["proxyAddress"] = p.hostname
|
|
|
# task["proxyPort"] = p.port
|
|
# task["proxyPort"] = p.port
|
|
|
# if p.username:
|
|
# if p.username:
|