demo.py: make it easier to modify for local testing

This commit is contained in:
Brian Warner 2015-10-07 16:23:42 -07:00
parent df3aee2a86
commit 385762b36d

View File

@ -6,8 +6,9 @@ from .transcribe import Wormhole
from .. import public_relay
APPID = u"lothar.com/wormhole/text-or-file-xfer"
relay_url = public_relay.RENDEZVOUS_RELAY
w = Wormhole(APPID, public_relay.RENDEZVOUS_RELAY)
w = Wormhole(APPID, relay_url)
if sys.argv[1] == "send":
message = sys.argv[2]