projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759512d
)
Allow multiple occurrences of AUTO. refs #754
author
Daira Hopwood
<daira@jacaranda.org>
Tue, 10 Feb 2015 17:31:10 +0000
(17:31 +0000)
committer
Daira 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
patch
|
blob
|
history
diff --git
a/src/allmydata/node.py
b/src/allmydata/node.py
index c20fef3e0ad8cf4348d170a77cfcf77fd447c7dc..35ccb355e5c2feebf20b277775cbc24f1a82b5c1 100644
(file)
--- 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)