INCOMPATIBILITY: move relay url to /v1

This should make it cleaner to add a /v2 in the future.
This commit is contained in:
Brian Warner 2016-05-25 00:29:23 -07:00
parent f2050c5fd4
commit 1fabf18f0e
2 changed files with 3 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 = u"ws://wormhole-relay.petmail.org:4000/"
RENDEZVOUS_RELAY = u"ws://wormhole-relay.petmail.org:4000/v1"
TRANSIT_RELAY = u"tcp:wormhole-transit-relay.petmail.org:4001"

View File

@ -48,8 +48,9 @@ class RelayServer(service.MultiService):
rendezvous = Rendezvous(db, welcome, blur_usage)
rendezvous.setServiceParent(self) # for the pruning timer
root = Root()
wsrf = WebSocketRendezvousFactory(None, rendezvous)
root = WebSocketResource(wsrf)
root.putChild(b"v1", WebSocketResource(wsrf))
site = PrivacyEnhancedSite(root)
if blur_usage: