[pypy-svn] r32889 - pypy/dist/pypy/translator/js/demo/jsdemo

arigo at codespeak.net arigo at codespeak.net
Wed Oct 4 20:10:11 CEST 2006


Author: arigo
Date: Wed Oct  4 20:10:10 2006
New Revision: 32889

Modified:
   pypy/dist/pypy/translator/js/demo/jsdemo/pythonconsole.py
Log:
Let's bind the server on localhost only, at least other machines cannot
do bad things to you then.


Modified: pypy/dist/pypy/translator/js/demo/jsdemo/pythonconsole.py
==============================================================================
--- pypy/dist/pypy/translator/js/demo/jsdemo/pythonconsole.py	(original)
+++ pypy/dist/pypy/translator/js/demo/jsdemo/pythonconsole.py	Wed Oct  4 20:10:10 2006
@@ -175,7 +175,7 @@
           handler_class=RequestHandler):
     global httpd
 
-    server_address = ('', 8000)
+    server_address = ('127.0.0.1', 8000)
     httpd = server_class(server_address, handler_class)
     print 'http://127.0.0.1:%d' % (server_address[1],)
     httpd.serve_forever()



More information about the Pypy-commit mailing list