]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
node.py: switch to using get_local_addresses_async, which is slightly more portable...
authorBrian Warner <warner@lothar.com>
Thu, 8 Mar 2007 22:12:52 +0000 (15:12 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 8 Mar 2007 22:12:52 +0000 (15:12 -0700)
src/allmydata/node.py

index da656a1900ccc12c1c3e839541a9dcc70663e726..04cabf9ed68eca891511ece9e02359f6c3f600cb 100644 (file)
@@ -4,8 +4,7 @@ from twisted.python import log
 from twisted.application import service
 from twisted.internet import defer
 from foolscap import Tub
-from allmydata.util.iputil import get_local_addresses
-from allmydata.util import idlib, observer
+from allmydata.util import idlib, observer, iputil
 
 class Node(service.MultiService):
     # this implements common functionality of both Client nodes and the Queen
@@ -73,7 +72,7 @@ class Node(service.MultiService):
         # note: this class can only be started and stopped once.
         service.MultiService.startService(self)
         d = defer.succeed(None)
-        d.addCallback(lambda res: get_local_addresses())
+        d.addCallback(lambda res: iputil.get_local_addresses_async())
         d.addCallback(self._setup_tub)
         d.addCallback(lambda res: self.tub_ready())
         def _ready(res):