INCOMPATIBILITY: move relay url to /v1
This should make it cleaner to add a /v2 in the future.
This commit is contained in:
parent
f2050c5fd4
commit
1fabf18f0e
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user