mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
Bind to localhost by default
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user