From: Daira Hopwood Date: Tue, 10 Feb 2015 17:31:10 +0000 (+0000) Subject: Allow multiple occurrences of AUTO. refs #754 X-Git-Tag: allmydata-tahoe-1.10.1a1~70^2~1 X-Git-Url: https://git.rkrishnan.org/pf/content//%22?a=commitdiff_plain;h=0b24756cc7a1312be49bad699962525779e5d899;p=tahoe-lafs%2Ftahoe-lafs.git Allow multiple occurrences of AUTO. refs #754 Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/node.py b/src/allmydata/node.py index c20fef3e..35ccb355 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -404,7 +404,9 @@ class Node(service.MultiService): if "AUTO" in split_location: d = iputil.get_local_addresses_async() 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) for addr in local_addresses ]) return ",".join(split_location)