This commit is contained in:
3
app.py
3
app.py
@@ -39,7 +39,8 @@ board_list = [ k['_key'] for k in boards0]
|
||||
|
||||
@app.route("/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')
|
||||
|
||||
Reference in New Issue
Block a user