(args, ext)
| 52 | |
| 53 | |
| 54 | def 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 | |
| 65 | def log(*args): |