relay: make it possible to omit the Transit server
This commit is contained in:
parent
dc65b4354d
commit
894da44244
|
@ -406,7 +406,8 @@ class RelayServer(service.MultiService):
|
||||||
t = internet.TimerService(EXPIRATION_CHECK_PERIOD,
|
t = internet.TimerService(EXPIRATION_CHECK_PERIOD,
|
||||||
self.relay.prune_old_channels)
|
self.relay.prune_old_channels)
|
||||||
t.setServiceParent(self)
|
t.setServiceParent(self)
|
||||||
self.transit = Transit()
|
if transitport:
|
||||||
self.transit.setServiceParent(self) # for the timer
|
self.transit = Transit()
|
||||||
self.transport_service = strports.service(transitport, self.transit)
|
self.transit.setServiceParent(self) # for the timer
|
||||||
self.transport_service.setServiceParent(self)
|
self.transport_service = strports.service(transitport, self.transit)
|
||||||
|
self.transport_service.setServiceParent(self)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user