MCPcopy
hub / github.com/firerpa/lamda / add_upstream

Function add_upstream

tools/startmitm.py:54–62  ·  view source on GitHub ↗
(args, ext)

Source from the content-addressed store, hash-verified

52
53
54def add_upstream(args, ext):
55 u = urlparse(args.upstream)
56 upstream = "upstream:{}://{}:{}".format(u.scheme,
57 u.hostname,
58 u.port)
59 args.mode = upstream
60 cred = "{}:{}".format(u.username, u.password)
61 u.username and ext.append("--upstream-auth")
62 u.username and ext.append(cred)
63
64
65def log(*args):

Callers 1

startmitm.pyFile · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected