mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-07 19:05:39 +00:00
Merge pull request #64 from ivanfilippov/checkip_fix
Fix checkip.html route not working when not behind a proxy. Fixes #62
This commit is contained in:
commit
f387732687
@ -658,7 +658,7 @@ def qrcode():
|
|||||||
@app.route('/nic/checkip.html', methods=['GET', 'POST'])
|
@app.route('/nic/checkip.html', methods=['GET', 'POST'])
|
||||||
def dyndns_checkip():
|
def dyndns_checkip():
|
||||||
# route covers the default ddclient 'web' setting for the checkip service
|
# route covers the default ddclient 'web' setting for the checkip service
|
||||||
return render_template('dyndns.html', response=request.headers.get('X-Real-IP'))
|
return render_template('dyndns.html', response=request.environ.get('HTTP_X_REAL_IP', request.remote_addr))
|
||||||
|
|
||||||
@app.route('/nic/update', methods=['GET', 'POST'])
|
@app.route('/nic/update', methods=['GET', 'POST'])
|
||||||
@dyndns_login_required
|
@dyndns_login_required
|
||||||
|
Loading…
Reference in New Issue
Block a user