From: Joe Beda Date: Thu, 22 Jul 2010 07:14:45 +0000 (-0700) Subject: Default 'bup web' to serving on localhost only. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3666846bc2591e695445d1d98aeeef8c8f01a540;p=packages%2Fb%2Fbup.git Default 'bup web' to serving on localhost only. Also make command output match man page. Signed-off-by: Joe Beda --- diff --git a/cmd/web-cmd.py b/cmd/web-cmd.py index c4e019c..e32fbb8 100755 --- a/cmd/web-cmd.py +++ b/cmd/web-cmd.py @@ -160,7 +160,7 @@ o = options.Options('bup web', optspec) if len(extra) > 1: o.fatal("at most one argument expected") -address = ('', 8080) +address = ('127.0.0.1', 8080) if len(extra) > 0: addressl = extra[0].split(':', 1) addressl[1] = int(addressl[1]) @@ -186,7 +186,7 @@ if __name__ == "__main__": http_server = tornado.httpserver.HTTPServer(application) http_server.listen(address[1], address=address[0]) - print "Listening on port %s" % http_server._socket.getsockname()[1] + print "Serving HTTP on %s:%d..." % http_server._socket.getsockname() loop = tornado.ioloop.IOLoop.instance() loop.start()