]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Allow multiple occurrences of AUTO. refs #754
authorDaira Hopwood <daira@jacaranda.org>
Tue, 10 Feb 2015 17:31:10 +0000 (17:31 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 10 Feb 2015 17:31:10 +0000 (17:31 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/node.py

index c20fef3e0ad8cf4348d170a77cfcf77fd447c7dc..35ccb355e5c2feebf20b277775cbc24f1a82b5c1 100644 (file)
@@ -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)