make name unique

This commit is contained in:
j 2017-07-05 12:55:22 +03:00
parent fabbcb669e
commit 6c027c344e

View file

@ -990,7 +990,7 @@ class Client(object):
urls = [u for u in args if u.startswith('http:')] urls = [u for u in args if u.startswith('http:')]
name = [u for u in args if u not in urls] name = [u for u in args if u not in urls]
if not name: if not name:
name = socket.gethostname() name = '%s-%s' % (socket.gethostname(), int(time.time()))
else: else:
name = name[0] name = name[0]
if not urls: if not urls: