add var HOST

This commit is contained in:
SiHuan 2020-08-12 19:31:57 +08:00
parent 5e776f5fbe
commit 7f3ac12e81
2 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,5 @@
from flask import Flask, request
from config import PORT
from config import HOST, PORT
from route import ZZRouter
app = Flask(__name__)
@ -9,5 +9,4 @@ def whenmsg():
ZZRouter(request.get_json())
return ''
app.run(host='0.0.0.0',port = PORT, debug=True)
app.run(host= HOST,port = PORT, debug=True)

View file

@ -4,6 +4,6 @@ APIURL = 'http://127.0.0.1:5700/'
AUTHORIZATION = ''
PORT = 5580
HOST = '0.0.0.0'
PORT = 5580