mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
xmpp: Disable TLS on http-bind port (Closes: #239).
This commit is contained in:
parent
1f183bf997
commit
dda0f311b2
@ -104,7 +104,9 @@ def subcommand_setup(_):
|
|||||||
|
|
||||||
with open(EJABBERD_CONFIG, 'w') as conffile:
|
with open(EJABBERD_CONFIG, 'w') as conffile:
|
||||||
for line in lines:
|
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)
|
conffile.write('## ' + line)
|
||||||
elif '## auth_method: ldap' in line:
|
elif '## auth_method: ldap' in line:
|
||||||
conffile.write('auth_method: ldap\n')
|
conffile.write('auth_method: ldap\n')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user