mirror of
https://github.com/Kozea/Radicale.git
synced 2025-10-03 21:20:45 +00:00
auth: clean up remote IP parameter/documentation
Make the remote IP parameter more generic and make it an enum determining the source instead of a boolean. Also fix the changelog entry. Both as requested, I managed to miss those comments previously.
This commit is contained in:
parent
d70606e7a5
commit
256ca59aaf
7 changed files with 31 additions and 18 deletions
|
@ -33,7 +33,8 @@ class Auth(auth.BaseAuth):
|
|||
self.timeout = 5
|
||||
self.request_id_gen = itertools.count(1)
|
||||
|
||||
self.use_x_remote_addr = configuration.get("auth", "dovecot_rip_x_remote_addr")
|
||||
remote_ip_source = configuration.get("auth", "remote_ip_source")
|
||||
self.use_x_remote_addr = remote_ip_source == 'X-Remote-Addr'
|
||||
|
||||
config_family = configuration.get("auth", "dovecot_connection_type")
|
||||
if config_family == "AF_UNIX":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue