mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
Allow multiple occurrences of AUTO. refs #754
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
759512da28
commit
0b24756cc7
@ -404,7 +404,9 @@ class Node(service.MultiService):
|
|||||||
if "AUTO" in split_location:
|
if "AUTO" in split_location:
|
||||||
d = iputil.get_local_addresses_async()
|
d = iputil.get_local_addresses_async()
|
||||||
def _add_local(local_addresses):
|
def _add_local(local_addresses):
|
||||||
split_location.remove("AUTO")
|
while "AUTO" in split_location:
|
||||||
|
split_location.remove("AUTO")
|
||||||
|
|
||||||
split_location.extend([ "%s:%d" % (addr, portnum)
|
split_location.extend([ "%s:%d" % (addr, portnum)
|
||||||
for addr in local_addresses ])
|
for addr in local_addresses ])
|
||||||
return ",".join(split_location)
|
return ",".join(split_location)
|
||||||
|
Loading…
Reference in New Issue
Block a user