parent
b537f470c9
commit
e6d7895865
|
@ -438,9 +438,10 @@ class Node(service.MultiService):
|
|||
portlocation = self.get_tub_portlocation(cfg_tubport, cfg_location)
|
||||
if portlocation:
|
||||
tubport, location = portlocation
|
||||
if tubport in ("0", "tcp:0"):
|
||||
raise ValueError("tub.port cannot be 0: you must choose")
|
||||
self.tub.listenOn(tubport)
|
||||
for port in tubport.split(","):
|
||||
if port in ("0", "tcp:0"):
|
||||
raise ValueError("tub.port cannot be 0: you must choose")
|
||||
self.tub.listenOn(port)
|
||||
self.tub.setLocation(location)
|
||||
self._tub_is_listening = True
|
||||
self.log("Tub location set to %s" % (location,))
|
||||
|
|
Loading…
Reference in New Issue