Skip to content

Commit b791ee1

Browse files
authored
Merge pull request #1501 from guardicore/tunneling-revert-schema
Changed proxy schema for the agent
2 parents a5587cd + 449fe75 commit b791ee1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

monkey/infection_monkey/control.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
# elsewhere.
3636
TIMEOUT_IN_SECONDS = 15
3737

38+
PROXY_SCHEMA = "%s:%s"
39+
3840

3941
class ControlClient(object):
4042
proxies = {}
@@ -113,7 +115,7 @@ def find_server(default_tunnel=None):
113115
if proxy_find:
114116
proxy_address, proxy_port = proxy_find
115117
logger.info("Found tunnel at %s:%s" % (proxy_address, proxy_port))
116-
ControlClient.proxies["https"] = "https://%s:%s" % (proxy_address, proxy_port)
118+
ControlClient.proxies["https"] = PROXY_SCHEMA % (proxy_address, proxy_port)
117119
return ControlClient.find_server()
118120
else:
119121
logger.info("No tunnel found")

0 commit comments

Comments
 (0)