mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
Allow passing a bind interface to run-dev.py
This makes it simpler to test between two VMs by allowing you to bind to non localhost interfaces. (imported from commit f70755533b52ff8c49fd916941d2210fb8c33b47)
This commit is contained in:
@@ -95,7 +95,11 @@ class Resource(resource.Resource):
|
|||||||
return proxy.ReverseProxyResource('localhost', django_port, '/'+name)
|
return proxy.ReverseProxyResource('localhost', django_port, '/'+name)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
reactor.listenTCP(proxy_port, server.Site(Resource()), interface='127.0.0.1')
|
try:
|
||||||
|
interface = sys.argv[1]
|
||||||
|
except IndexError:
|
||||||
|
interface = '127.0.0.1'
|
||||||
|
reactor.listenTCP(proxy_port, server.Site(Resource()), interface=interface)
|
||||||
reactor.run()
|
reactor.run()
|
||||||
except:
|
except:
|
||||||
# Print the traceback before we get SIGTERM and die.
|
# Print the traceback before we get SIGTERM and die.
|
||||||
|
|||||||
Reference in New Issue
Block a user