mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
None != False
This commit is contained in:
parent
5796651a78
commit
b3496bcbd8
@ -102,7 +102,7 @@ class Request(object):
|
||||
remote_addr, remote_port = forward_adress.split(':')
|
||||
else:
|
||||
remote_addr, remote_port = (forward_adress, '')
|
||||
elif self.client_adress:
|
||||
elif self.client_adress is not None:
|
||||
remote_addr, remote_port = self.client_adress
|
||||
else:
|
||||
remote_addr, remote_port = ('127.0.0.1', '')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user