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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user