Fix DynDNS2 using X-Forwarded-For (#1214)

utils.validate_ipaddress() takes a string, not a list
This commit is contained in:
gadall 2022-06-18 18:11:22 +08:00 committed by GitHub
parent 1926b862b8
commit bf83e68a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -836,7 +836,7 @@ def dyndns_update():
remote_addr = utils.validate_ipaddress(
request.headers.get('X-Forwarded-For',
request.remote_addr).split(', ')[:1])
request.remote_addr).split(', ')[0])
response = 'nochg'
for ip in myip_addr or remote_addr: