add ip
This commit is contained in:
parent
682dd093b7
commit
8a5e5f0ce8
8
app.py
8
app.py
@ -170,5 +170,13 @@ def release_allocation():
|
|||||||
|
|
||||||
return jsonify(message="200")
|
return jsonify(message="200")
|
||||||
|
|
||||||
|
@app.route("/api/addip", methods=['POST'])
|
||||||
|
def add_ip():
|
||||||
|
try:
|
||||||
|
token = request.headers['token']
|
||||||
|
ip = request.headers['ip']
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
print(token, ip)
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(host="0.0.0.0")
|
app.run(host="0.0.0.0")
|
Loading…
Reference in New Issue
Block a user