1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-12-02 06:18:05 +00:00

use the standard socket library to validate the ip address argument

This commit is contained in:
Daniel Pavel
2019-07-14 22:06:40 +03:00
parent a334ef28e7
commit 99c6247baf
5 changed files with 46 additions and 84 deletions

View File

@@ -29,10 +29,7 @@ _ldap = LDAP()
def init_app(app, config):
global _ldap
if config.config_login_type != constants.LOGIN_LDAP:
_ldap = None
return
app.config['LDAP_HOST'] = config.config_ldap_provider_url