Bind to localhost by default

This commit is contained in:
Florian Mounier
2014-02-28 11:21:47 +01:00
parent 3d6677643d
commit 14caa88d19
3 changed files with 2865 additions and 5 deletions

View File

@@ -19,6 +19,7 @@
import tornado.options
import tornado.ioloop
import tornado.httpserver
tornado.options.define("secret", default='secret', help="Secret")
tornado.options.define("debug", default=False, help="Debug mode")
@@ -41,8 +42,9 @@ ioloop = tornado.ioloop.IOLoop.instance()
from butterfly import application
application.listen(tornado.options.options.port)
http_server = tornado.httpserver.HTTPServer(application)
http_server.listen(
tornado.options.options.port, address=tornado.options.options.host)
url = "http://%s:%d/*" % (
tornado.options.options.host, tornado.options.options.port)

View File

@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '1.1.6'
__version__ = '1.2.0'
import os

File diff suppressed because one or more lines are too long