xmpp: Disable TLS on http-bind port (Closes: #239).

This commit is contained in:
James Valleroy 2015-10-04 18:57:30 -04:00
parent 1f183bf997
commit dda0f311b2

View File

@ -104,7 +104,9 @@ def subcommand_setup(_):
with open(EJABBERD_CONFIG, 'w') as conffile:
for line in lines:
if 'auth_method: internal' in line:
if re.match(r'^\s*tls:\s+true', line):
conffile.write(' tls: false\n')
elif 'auth_method: internal' in line:
conffile.write('## ' + line)
elif '## auth_method: ldap' in line:
conffile.write('auth_method: ldap\n')