From 0b24756cc7a1312be49bad699962525779e5d899 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 10 Feb 2015 17:31:10 +0000 Subject: [PATCH] Allow multiple occurrences of AUTO. refs #754 Signed-off-by: Daira Hopwood --- src/allmydata/node.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.45.2