master
Florent Daigniere 3 years ago
parent 2e9b14d536
commit a4ed464170

@ -12,7 +12,7 @@ def nginx_authentication():
""" """
client_ip = flask.request.headers["Client-Ip"] client_ip = flask.request.headers["Client-Ip"]
headers = flask.request.headers headers = flask.request.headers
if headers["Auth-Port"] == '25' and headers['Auth-Method'] == 'plain': if headers["Auth-Port"] == '25' and headers['Auth-Method'] != 'none':
response = flask.Response() response = flask.Response()
response.headers['Auth-Status'] = 'AUTH not supported' response.headers['Auth-Status'] = 'AUTH not supported'
response.headers['Auth-Error-Code'] = '502 5.5.1' response.headers['Auth-Error-Code'] = '502 5.5.1'

Loading…
Cancel
Save