This commit is contained in:
parent
ad6feb7afb
commit
216d60c84d
3
app.py
3
app.py
@ -39,7 +39,8 @@ board_list = [ k['_key'] for k in boards0]
|
|||||||
|
|
||||||
@app.route("/get_my_ip")
|
@app.route("/get_my_ip")
|
||||||
def get_my_ip():
|
def get_my_ip():
|
||||||
return jsonify({'ip': request.remote_addr}), 200
|
return jsonify({'ip': request.remote_addr,
|
||||||
|
'real-ip': request.environ.get('HTTP_X_REAL_IP', request.remote_addr)}), 200
|
||||||
|
|
||||||
|
|
||||||
@app.route('/liveness')
|
@app.route('/liveness')
|
||||||
|
Loading…
Reference in New Issue
Block a user