start with -2

This commit is contained in:
j 2016-03-26 17:26:19 +01:00
parent 6018ddd374
commit a1ea4943c5

View file

@ -94,7 +94,7 @@ class LocalNodes(dict):
self.local_info = []
for i, local_ip in enumerate(get_broadcast_interfaces()):
if i:
name = '%s-%s [%s].%s' % (desc['username'], i, settings.USER_ID, self.service_type)
name = '%s-%s [%s].%s' % (desc['username'], i+1, settings.USER_ID, self.service_type)
else:
name = '%s [%s].%s' % (desc['username'], settings.USER_ID, self.service_type)
local_info = ServiceInfo(self.service_type, name,