diff options
author | Eric Anderson | 2017-08-05 15:16:28 -0700 |
---|---|---|
committer | Eric Anderson | 2017-08-05 15:16:28 -0700 |
commit | 604aeb67e38064cc8690884c972103e4633485bd (patch) | |
tree | 5de37ccece57e63c91fc3de1b58189cbaa6c1346 /pkgdistcache-client | |
parent | 51cf85122c112e8162640898aebc83c764c038f1 (diff) | |
download | aur-604aeb67e38064cc8690884c972103e4633485bd.tar.gz |
Bump to 0.4.1 for client ipv6 colon handling in URL
Diffstat (limited to 'pkgdistcache-client')
-rwxr-xr-x | pkgdistcache-client | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgdistcache-client b/pkgdistcache-client index 424717cf7cd1..744f4bcb713c 100755 --- a/pkgdistcache-client +++ b/pkgdistcache-client @@ -145,7 +145,10 @@ def main(argv): pickle.dump(pkgdistcache_clients, f, -1) for client in pkgdistcache_clients: - url = "http://" + client.ip + ":" + str(client.port) + "/" + pkg + clientip = client.ip + if ":" in clientip: + clientip = "[" + clientip + "]" + url = "http://" + clientip + ":" + str(client.port) + "/" + pkg dst = argv[2] printmsg("Downloading " + pkg + " from host '" + client.host + "'") download_cmd = download_cmd_template.substitute({'u': url, 'o': dst}) |