ip-getter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2024-01-30 13:51:23 +10:00
parent ad6feb7afb
commit 216d60c84d

3
app.py
View File

@ -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')