change relay URL: use more distinctive path prefix

This might make it easier for an application's web site to include a
relay, without competing with some other resource named "relay".
This commit is contained in:
Brian Warner 2015-03-25 16:51:55 -07:00
parent 883cacf903
commit 0217a13da6
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# This is a relay I run on a personal server. If it gets too expensive to
# run, I'll shut it down.
RENDEZVOUS_RELAY = "http://wormhole-relay.petmail.org:3000/relay/"
RENDEZVOUS_RELAY = "http://wormhole-relay.petmail.org:3000/wormhole-relay/"
TRANSIT_RELAY = "tcp:wormhole-transit-relay.petmail.org:3001"

View File

@ -324,7 +324,7 @@ class RelayServer(service.MultiService):
self.relayport_service = strports.service(relayport, site)
self.relayport_service.setServiceParent(self)
self.relay = Relay() # accessible from tests
self.root.putChild("relay", self.relay)
self.root.putChild("wormhole-relay", self.relay)
t = internet.TimerService(5*MINUTE, self.relay.prune_old_channels)
t.setServiceParent(self)
self.transit = Transit()