forked from p15670423/monkey
Agent: Changed proxy schema
This commit is contained in:
parent
0839f04b1d
commit
449fe7517e
|
@ -35,6 +35,8 @@ PBA_FILE_DOWNLOAD = "https://%s/api/pba/download/%s"
|
||||||
# elsewhere.
|
# elsewhere.
|
||||||
TIMEOUT_IN_SECONDS = 15
|
TIMEOUT_IN_SECONDS = 15
|
||||||
|
|
||||||
|
PROXY_SCHEMA = "%s:%s"
|
||||||
|
|
||||||
|
|
||||||
class ControlClient(object):
|
class ControlClient(object):
|
||||||
proxies = {}
|
proxies = {}
|
||||||
|
@ -113,7 +115,7 @@ class ControlClient(object):
|
||||||
if proxy_find:
|
if proxy_find:
|
||||||
proxy_address, proxy_port = proxy_find
|
proxy_address, proxy_port = proxy_find
|
||||||
logger.info("Found tunnel at %s:%s" % (proxy_address, proxy_port))
|
logger.info("Found tunnel at %s:%s" % (proxy_address, proxy_port))
|
||||||
ControlClient.proxies["https"] = "https://%s:%s" % (proxy_address, proxy_port)
|
ControlClient.proxies["https"] = PROXY_SCHEMA % (proxy_address, proxy_port)
|
||||||
return ControlClient.find_server()
|
return ControlClient.find_server()
|
||||||
else:
|
else:
|
||||||
logger.info("No tunnel found")
|
logger.info("No tunnel found")
|
||||||
|
|
Loading…
Reference in New Issue